On Thu, 2009-04-23 at 00:00 +0200, Julien Isorce wrote:

> Is there a way to be sure that a stage is not used (from clutter side)
>  just during a function.

> For example:
> 
> void do_some_stuff (ClutterStage *s)
> {
>   clutter_enter_stage (s);
> 
>   //here I want to be sure that the stage s and its attached actors
> are not used, not drawn, not repaint.. :nothing from clutter
> 
>   clutter_leave_stage (s)
> }
> 
> AND do_some_stuff is called in the main thread, the one where clutter
> is initialized.

Clutter is a single threaded library. if you are inside a function then
nothing can be running at the same time.

on top of that, Clutter API should never be used from multiple threads
without acquiring the thread lock.

> I am almost sure that clutter_threads_enter/leave is not that I want.

then you're almost surely wrong.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, Senior Engineer        | [email protected]
Intel Open Source Technology Center     | http://oss.intel.com

-- 
To unsubscribe send a mail to [email protected]

Reply via email to