![]() |
![]() |
![]() |
Destroy a synchronization object
#include <sys/neutrino.h> int SyncDestroy( sync_t* sync ); int SyncDestroy_r ( sync_t* sync );
libc
The SyncDestroy() and SyncDestroy_r() functions are identical except in the way they indicate errors. See the Returns section for details.
These kernel calls destroy a synchronization object previously allocated by a call to SyncTypeCreate(). If the object is a locked mutex, or a condition variable with waiting threads, the call fails. Any attempt to use sync after it is destroyed fails.
These calls don't block.
The only difference between these functions is the way they indicate errors:
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |