62 #if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION) 63 # error "Header files shouldn't be included directly, consider using <plibsys.h> instead." 66 #ifndef PLIBSYS_HEADER_PMUTEX_H 67 #define PLIBSYS_HEADER_PMUTEX_H #define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS...
P_LIB_API pboolean p_mutex_trylock(PMutex *mutex)
Tries to lock a mutex immediately.
P_LIB_API PMutex * p_mutex_new(void)
Creates a new PMutex object.
signed int pboolean
Type for a bool.
P_LIB_API void p_mutex_free(PMutex *mutex)
Frees PMutex object.
#define P_LIB_API
Exports a symbol from a shared library.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
P_LIB_API pboolean p_mutex_lock(PMutex *mutex)
Locks a mutex.
struct PMutex_ PMutex
Mutex opaque data structure.
P_LIB_API pboolean p_mutex_unlock(PMutex *mutex)
Releases a locked mutex.