Re: Are g_slist "types" thread-safe?
- From: Bryan Christ <bryan christ hp com>
- To: Matthias Clasen <mclasen redhat com>
- Cc: gtk-list gnome org
- Subject: Re: Are g_slist "types" thread-safe?
- Date: Mon, 10 Oct 2005 09:10:22 -0500
Thanks! That was my expectation.
Matthias Clasen wrote:
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]