32584a3b15913c620e84125dbba9be4702e0c609
[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 typedef struct _pthread_condattr_t pthread_condattr_t;
16
17 typedef struct
18 {
19     CONDITION_VARIABLE _cv;
20 }
21 pthread_cond_t;
22
23 int pthread_cond_init(pthread_cond_t* __cond, const pthread_condattr_t* __cond_attr);
24 int pthread_cond_destroy(pthread_cond_t* __cond);
25
26 int pthread_cond_timedwait(pthread_cond_t* __cond,
27     pthread_mutex_t* __mutex,
28     const struct timespec* __abstime);
29 int pthread_cond_broadcast(pthread_cond_t* __cond);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif /* WIN_MUTEX */