| Top |  |  |  |  | 
| GPU synchronisation fencesGPU synchronisation fences — Functions for notification of command completion | 
| void | (*CoglFenceCallback) () | 
| void * | cogl_fence_closure_get_user_data () | 
| CoglFenceClosure * | cogl_framebuffer_add_fence_callback () | 
| void | cogl_framebuffer_cancel_fence_callback () | 
Cogl allows notification of GPU command completion; users may mark points in the GPU command stream and receive notification when the GPU has executed to that point.
void (*CoglFenceCallback) (CoglFence *fence,void *user_data);
The callback prototype used with
cogl_framebuffer_add_fence_callback() for notification of GPU
command completion.
| fence | Unused. In the future this parameter may be used to pass extra information about the fence completion but for now it should be ignored. | |
| user_data | The private data passed to  | 
Since: 2.0
Stability Level: Unstable
void *
cogl_fence_closure_get_user_data (CoglFenceClosure *closure);
CoglFenceClosure * cogl_framebuffer_add_fence_callback (CoglFramebuffer *framebuffer,CoglFenceCallback callback,void *user_data);
Calls the provided callback when all previously-submitted commands have been executed by the GPU.
Returns non-NULL if the fence succeeded, or NULL if it was unable to
be inserted and the callback will never be called.  The user does not
need to free the closure; it will be freed automatically when the
callback is called, or cancelled.
| framebuffer | The CoglFramebuffer the commands have been submitted to | |
| callback | A CoglFenceCallback to be called when all commands submitted to Cogl have been executed. | [scope notified] | 
| user_data | Private data that will be passed to the callback. | [closure] | 
Since: 2.0
Stability Level: Unstable
void cogl_framebuffer_cancel_fence_callback (CoglFramebuffer *framebuffer,CoglFenceClosure *closure);
Removes a fence previously submitted with
cogl_framebuffer_add_fence_callback(); the callback will not be
called.
| framebuffer | The CoglFramebuffer the commands were submitted to | |
| closure | The CoglFenceClosure returned from
 | 
Since: 2.0
Stability Level: Unstable