1
0

nxsemaphore.h 360 B

12345678910111213141516
  1. #pragma once
  2. #include <windows.h>
  3. #include "nx/nxapi.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef HANDLE nx_semaphore_t;
  8. NX_API int NXSemaphoreCreate(nx_semaphore_t *sem);
  9. NX_API int NXSemaphoreRelease(nx_semaphore_t sem);
  10. NX_API int NXSemaphoreWait(nx_semaphore_t sem);
  11. NX_API void NXSemaphoreClose(nx_semaphore_t sem);
  12. #ifdef __cplusplus
  13. }
  14. #endif