Re: Is GLIB thread safe?



On Sun, 26 Oct 2008 00:25:24 +0800
"Peter Cai" <newptcai gmail com> wrote:
[snip]
> But I got one problem.  Is GLIB thread safe?

It depends on what you mean by "thread safe".  Apart from the
container types that glib provides, glib is thread safe, including its
main loop and (since version 2.8.0) its reference counting.  The
individual container types that glib provides (lists, queues - except
GAsyncQueue - hash-tables and the like) are not thread safe, nor are the
data that the containers reference (the latter obviously depends on the
contained types themselves).

Chris



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