Re: Are g_slist "types" thread-safe?
- From: Matthias Clasen <mclasen redhat com>
- To: Bryan Christ <bryan christ hp com>
- Cc: gtk-list gnome org
- Subject: Re: Are g_slist "types" thread-safe?
- Date: Thu, 06 Oct 2005 18:12:01 -0400
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.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]