Re: A few remarks about locking
- From: Pawel Salek <pawsa TheoChem kth se>
- To: Carlos Morgado <chbm chbm nu>
- Cc: balsa-list gnome org
- Subject: Re: A few remarks about locking
- Date: Tue, 26 Mar 2002 23:40:56 +0100
On 2002.03.26 23:27 Carlos Morgado wrote:
> On Tue, Mar 26, 2002 at 09:35:33PM +0100, Pawel Salek wrote:
> >
> > One must be *extremely* careful. nested locks must always acquired
> in
> > same order (see HACKING). Otherwise, it easy to deadlock. Possible
> > scenario: mailbox lock is held by a thread, gdk lock is released.
> The
> > other thread gets GDK lock and waits for mailbox lock. The first
> thread
> > tries to get GDK lock back, and we have a deadlock.
> >
>
> in this particular:
>
> [...] neat scheme
>
> doesn't seem particularly evil
I guess that would do.
-pawel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]