Re: Are g_slist "types" thread-safe?

On Thu, 2005-10-06 at 16:59 -0500, Bryan Christ wrote:
> In other words, if two or more threads need to append to the same list, 
> do I need to wrap the critical areas in mutex or semaphore or do g_slist 
> have their own internal lock?

Yes, for concurrent access to the *same* GLib data structure, the
application is responsible for suitable locking. 


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