Re: [sigc] Re: [gtkmm] libsigcx and gtkmm 2.4
- From: Daniel Elstner <daniel elstner gmx net>
- To: Martin Schulze <martin-ml hippogriff de>
- Cc: libsigcx-main lists sourceforge net, libsigc-list gnome org, Gtkmm List <gtkmm-list gnome org>
- Subject: Re: [sigc] Re: [gtkmm] libsigcx and gtkmm 2.4
- Date: Sun, 13 Jun 2004 17:18:28 +0200
Am So, den 13.06.2004 um 16:33 Uhr +0200 schrieb Daniel Elstner:
> Wrong! It's not that simple. Whenever two threads access the same
> data, both have to acquire the same mutex for any access to it
> whatsoever, be it reading or writing. The only situation where this
> rule doesn't apply is if thread A creates the data before launching
> thread B, and both threads never write to it again, or only thread B
> does and thread A never accesses it at all.
There's another exception: joining a thread completely synchronizes the
memory of the thread being joined with the thread doing the joining.
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]