> I'm using a combination of add_timeout's and 'stock' python threads and
> whilst I do occasionally run into an issue, the following logic seems to
> work:
> 1) Create thread: thread = threading.Thread(target=self.someFunction) and
> start the thread
> 2) Within the threaded function, protect anything that modifies a clutter
> object with 'clutter.threads_enter()' and 'clutter.threads_leave()'

Thanks for the suggestion, i'll try using threads_enter and leave.

> The only major issue I have is when threads start doing CPU intensive tasks
> the whole thing becomes CPU bound and any 'action' on the stage locks up.
> You can get around this to a degree by using calls to sleep() within the
> thread though.

You mean that just the "starting burst" is noticeable, unless you
delay it slightly ?

FLo
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to