summaryrefslogtreecommitdiffstats
path: root/include/ui/Fence.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui/Fence.h')
-rw-r--r--include/ui/Fence.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ui/Fence.h b/include/ui/Fence.h
index b516a22..a8460c2 100644
--- a/include/ui/Fence.h
+++ b/include/ui/Fence.h
@@ -62,6 +62,13 @@ public:
// indefinitely for the fence to signal.
int wait(unsigned int timeout);
+ // waitForever is a convenience function for waiting forever for a fence to
+ // signal (just like wait(TIMEOUT_NEVER)), but issuing an error to the
+ // system log and fence state to the kernel log if the wait lasts longer
+ // than warningTimeout. The logname argument should be a string identifying
+ // the caller and will be included in the log message.
+ int waitForever(unsigned int warningTimeout, const char* logname);
+
// TIMEOUT_NEVER may be passed to the wait method to indicate that it
// should wait indefinitely for the fence to signal.
enum { TIMEOUT_NEVER = -1 };