perf(input): controller readers wake when input lands instead of polling (#3341)

* perf(input): controller readers wake when input lands instead of polling

* fix(input): an idle controller read stays a cancellation point

* Keep the cancellation point out of builds without thread cancellation
This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-27 12:37:54 -05:00
1 parent cc63b40387
commit 27171d8ffd
3 files changed
+54 -8

No files matched your search

@@ -149,6 +149,8 @@ public class FakeInputWriter {
private static native void nativeStoreFence();
private static native void nativeWake(ByteBuffer ring, int offset);
public static void storeFence() {
nativeStoreFence();
}
@@ -455,6 +457,7 @@ public class FakeInputWriter {
writeSnapshotLocked(ring);
nativeStoreFence();
ring.putLong(RING_WRITE_SEQ_OFFSET, writeSeq);
nativeWake(ring, RING_WRITE_SEQ_OFFSET);
}
return true;
}