diff options
author | James Jones <jajones@nvidia.com> | 2010-06-25 16:18:03 -0700 |
---|---|---|
committer | James Jones <jajones@nvidia.com> | 2010-12-03 16:49:17 -0800 |
commit | 259a4c847ce2314bb6e1b050c93f58c3029eb67d (patch) | |
tree | 9211cb9a7b10b37ebd4c102e40dff7ce90330e43 /include | |
parent | 010f35552cd5dc5c7004e765bb060b69d7f6a02f (diff) | |
download | xorg-lib-libXext-259a4c847ce2314bb6e1b050c93f58c3029eb67d.tar.gz |
Initial Fence Sync Object support
Allows creating and managing binary state sync
objects. Currently they aren't useful because
there is not yet a way to wait for them or
query their state. X fence objects are owned
by a screen. As Aaron Plattner pointed out,
screens are identified by a drawable in X
protocol, so XSyncCreateFence() takes a drawable
to identify which screen to create the fence on.
Signed-off-by: James Jones <jajones@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/extensions/sync.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/X11/extensions/sync.h b/include/X11/extensions/sync.h index af49c37..7f4b5c5 100644 --- a/include/X11/extensions/sync.h +++ b/include/X11/extensions/sync.h @@ -335,6 +335,27 @@ extern Status XSyncGetPriority( int* /*return_priority*/ ); +extern XSyncFence XSyncCreateFence( + Display* /*dpy*/, + Drawable /*d*/, + Bool /*initially_triggered*/ +); + +extern Bool XSyncTriggerFence( + Display* /*dpy*/, + XSyncFence /*fence*/ +); + +extern Bool XSyncResetFence( + Display* /*dpy*/, + XSyncFence /*fence*/ +); + +extern Bool XSyncDestroyFence( + Display* /*dpy*/, + XSyncFence /*fence*/ +); + _XFUNCPROTOEND #endif /* _SYNC_SERVER */ |