[vlc-devel] [PATCH 19/41] Implement thread support for OS/2
remi at remlab.net
Fri Oct 14 16:51:51 CEST 2011
On Fri, 14 Oct 2011 23:28:46 +0900, KO Myung-Hun <komh78 at gmail.com> wrote:
>>> +typedef struct
>>> + HEV hev;
>>> + HMTX wait_mutex;
>>> + HMTX count_mutex;
>>> + int count;
>>> + int max_count;
>>> +} vlc_sem_t;
>> A semaphore can be reimplemented with one mutex, one condition variable
>> one integer. So it's surprising that 'HMTX' are required here.
> HMTX is a mutex. What problem ?
I just meant to say that a semaphore should need only one mutex (and one
condition variable), not two mutexes (and one condition variable).
More information about the vlc-devel