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_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS.
#define P_LIB_API
Exports a symbol from a shared library.
P_LIB_API PMutex * p_mutex_new(void)
Creates a new PMutex object.
struct PMutex_ PMutex
Mutex opaque data structure.
P_LIB_API void p_mutex_free(PMutex *mutex)
Frees PMutex object.
P_LIB_API pboolean p_mutex_lock(PMutex *mutex)
Locks a mutex.
P_LIB_API pboolean p_mutex_unlock(PMutex *mutex)
Releases a locked mutex.
P_LIB_API pboolean p_mutex_trylock(PMutex *mutex)
Tries to lock a mutex immediately.
signed int pboolean
Type for a bool.