Re: [sigc] Re: [gtkmm] libsigcx and gtkmm 2.4



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]