![]() |
![]() |
![]() |
Revive a mutex
#include <sys/neutrino.h> int SyncMutexRevive( sync_t * sync ); int SyncMutexRevive_r( sync_t * sync );
libc
The SyncMutexRevive() and SyncMutexRevive_r() functions are identical except in the way they indicate errors. See the Returns section for details.
These kernel calls revive a mutex, pointed to by sync, that's in the DEAD state. The mutex will be put into the LOCK state and will be owned by the calling thread. The mutex counter is set to one (for recursive mutexes).
See SyncMutexEvent() for information on how to get notified when a mutex enters the DEAD state.
The only difference between these functions is the way they indicate errors:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_mutex_lock(), pthread_mutex_unlock(), SyncTypeCreate(), SyncDestroy(), SyncMutexEvent(), SyncMutexUnlock()
![]() |
![]() |
![]() |