-
public uint add_repaint_func (owned SourceFunc func)
Adds a function to be called whenever Clutter is repainting a Stage. If the function returns false
it is automatically removed from the list of repaint functions and will not be called again.
-
public void enter ()
Locks the Clutter thread lock.
-
public void init ()
Initialises the Clutter threading mechanism, so that Clutter API can be called by multiple threads,
using enter and leave
to mark the critical sections.
-
public void leave ()
Unlocks the Clutter thread lock.
-
public void remove_repaint_func (uint handle_id)
Removes the repaint function with handle_id as its id
-
public void set_lock_functions (Callback enter_fn, Callback leave_fn)
Allows the application to replace the standard method that Clutter uses to protect its data structures.
Normally, Clutter creates a single Mutex that is locked by
enter, and released by
leave; using this function an application provides, instead, a function enter_fn that is called by
enter and a function leave_fn that is called by
leave.