[IE][VPU][XLink]: XLink semaphore wrappers impl (#3079)
[platform/upstream/dldt.git] / inference-engine / thirdparty / movidius / XLink / pc / Win / include / win_synchapi.h
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 #ifndef WIN_SYNCHAPI
6 #define WIN_SYNCHAPI
7
8 #include "win_pthread.h"
9 #include "synchapi.h"
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #define PTHREAD_COND_INITIALIZER {0}
16
17 typedef struct _pthread_condattr_t pthread_condattr_t;
18
19 typedef struct
20 {
21     CONDITION_VARIABLE _cv;
22 }
23 pthread_cond_t;
24
25 int pthread_cond_init(pthread_cond_t* __cond, const pthread_condattr_t* __cond_attr);
26 int pthread_cond_destroy(pthread_cond_t* __cond);
27
28 int pthread_cond_wait(pthread_cond_t *__cond,
29     pthread_mutex_t *__mutex);
30 int pthread_cond_timedwait(pthread_cond_t* __cond,
31     pthread_mutex_t* __mutex,
32     const struct timespec* __abstime);
33
34 int pthread_cond_signal(pthread_cond_t* __cond);
35 int pthread_cond_broadcast(pthread_cond_t* __cond);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /* WIN_MUTEX */