Re: Question about multithreads
- From: "John Cupitt" <jcupitt gmail com>
- To: "Tomasz Jankowski" <tomcioj gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Question about multithreads
- Date: Wed, 1 Nov 2006 14:45:57 +0000
On 10/31/06, John Cupitt <jcupitt gmail com> wrote:
If the value doesn't change, or you don't mind if changes are not seen
by other threads for a while, then it's OK to skip the mutex.
I forgot to say:
http://developer.gnome.org/doc/API/2.0/glib/glib-Atomic-Operations.html
Can save you an expensive mutex. But you need to use them very carefully.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]