[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recursive mutexes?
From: |
Marius Vollmer |
Subject: |
Re: Recursive mutexes? |
Date: |
27 Oct 2002 12:32:21 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Rob Browning <address@hidden> writes:
> >> Well you certainly could use a condition variable instead of a mutex
> >> here, but I would suspect that in cases where you just want to wake
> >> someone else up, a mutex others can unlock would be lighter weight.
> >> With a condition variable you have to have both a mutex and the
> >> condition variable.
> >
> > And for a good reason, no?
>
> Not sure I follow.
I meant: there is a good reason that waiting on a condition variable
requires you to have a locked mutex that is the atomically unlocked.
Without this, I guess you will have a hard time avoiding race
conditions. Using mutexes in a strange way to simulate this is
probably wrong.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
- Re: Recursive mutexes?, (continued)
- Re: Recursive mutexes?, Tom Lord, 2002/10/26
- Re: Recursive mutexes?, Thomas Bushnell, BSG, 2002/10/26
- Re: Recursive mutexes?, Tom Lord, 2002/10/26
- Re: Recursive mutexes?, Tom Lord, 2002/10/26
- Re: Recursive mutexes?, Thomas Bushnell, BSG, 2002/10/26
Re: Recursive mutexes?, Tom Lord, 2002/10/26
Re: Recursive mutexes?, Marius Vollmer, 2002/10/26