Hello,
I have one question regarding the use of clutter in a multi-threaded
application. Reading the documentation I do not understand if
clutter_threads_enter() and clutter_threads_leave() are needed:
a) to protect every call to clutter functions, or
b) only to protect accessing the same actor from different threads.
I thought it was a) so I put the calls to these functions around every part
of the code using the clutter API; then all the threads locked at
clutter_threads_enter(). This problem was probably due to an error from my
part (this is my first program using threads and the first program using
glib, so that the problem could be in the interaction between threads and
glib main loop). Then I tried to remove almost all calls to
clutter_threads_enter() and clutter_threads_leave() only ensuring b). Now
the application seems to work but I don't know if this is the right thing to
do or simply I've been lucky when I tested it (no race conditions by
chance).
Thanks,
Luca