1 #ifndef ACL_SEM_INCLUDE_H 2 #define ACL_SEM_INCLUDE_H 7 #include "../stdlib/acl_define.h" 9 #if defined(_WIN32) || defined(_WIN64) 11 typedef struct ACL_SEM ACL_SEM;
14 unsigned int volatile count;
17 ACL_API ACL_SEM *acl_sem_create2(
const char *pathname,
18 unsigned int initial_value);
19 ACL_API ACL_SEM *acl_sem_create(
unsigned int initial_value);
20 ACL_API
void acl_sem_destroy(ACL_SEM *sem);
21 ACL_API
int acl_sem_wait_timeout(ACL_SEM *sem,
unsigned int timeout);
22 ACL_API
int acl_sem_try_wait(ACL_SEM *sem);
23 ACL_API
int acl_sem_wait(ACL_SEM *sem);
24 ACL_API
unsigned int acl_sem_value(ACL_SEM *sem);
25 ACL_API
int acl_sem_post(ACL_SEM *sem);