summaryrefslogtreecommitdiff
path: root/libs/ui/include/ui/FenceTime.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ui/include/ui/FenceTime.h')
-rw-r--r--libs/ui/include/ui/FenceTime.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ui/include/ui/FenceTime.h b/libs/ui/include/ui/FenceTime.h
index ecba7f73e8..ac75f431a0 100644
--- a/libs/ui/include/ui/FenceTime.h
+++ b/libs/ui/include/ui/FenceTime.h
@@ -112,6 +112,13 @@ public:
// Returns a snapshot of the FenceTime in its current state.
Snapshot getSnapshot() const;
+ // wait waits for up to timeout milliseconds for the fence to signal. If
+ // the fence signals then NO_ERROR is returned. If the timeout expires
+ // before the fence signals then -ETIME is returned. A timeout of
+ // TIMEOUT_NEVER may be used to indicate that the call should wait
+ // indefinitely for the fence to signal.
+ status_t wait(int timeout);
+
void signalForTest(nsecs_t signalTime);
private: