Re: gobject in a threaded app


Evgeny Chukreev <sjah land ru> writes:

> Is it safe to use g_object_ref and g_object_unref in a app with threads?
> Do I need to lock GObject before?

you need to do your own locking if objects are shared between threads.
g_object_ref | g_object_unref() doesn't perform any locking.

Salut, Sven

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]