[En-Nut-Discussion] Feature Request 1572837: mutex API nesting	level info
    Matthias Ringwald 
    mringwal at inf.ethz.ch
       
    Mon Jul 14 17:23:51 CEST 2008
    
    
  
On 14.07.2008, at 16:52, Alain M. wrote:
> Why not use a Semaphore? I understand that it is basicaly a counter,
> just as needed. I have already used mutexes implemented as semaphores
> with a max count of 1...
>
> Alain
Yepp. But, again, in Nut/OS and Posix, you cannot read-out a  
semaphore. Even more, a semaphore initialized to one cannot be aquired  
a second time, even if its by the same thread. that's why the  
recursive mutex is good for, it allows repeated locking by the  same  
thread.
matthias
    
    
More information about the En-Nut-Discussion
mailing list