SP_mutex_unlock()
#include <sicstus/sicstus.h> static SP_mutex volatile mutex = SP_MUTEX_INITIALIZER; int SP_mutex_unlock(SP_mutex *pmx);
Unlocks the mutex.
Zero on error, non-zero on success.
The number of unlocks must match the number of locks and only the thread that performed the lock can unlock the mutex.
See the example of SP_mutex_lock()
.