diff options
Diffstat (limited to 'src/platform/posix/posix_impl.h')
| -rw-r--r-- | src/platform/posix/posix_impl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index 0a3151f3..a7b15edc 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -22,14 +22,17 @@ // Define types that this platform uses. #ifdef PLATFORM_POSIX_SYNCH + +#include <pthread.h> + struct nni_mutex { pthread_mutex_t mx; -} +}; -struct nni_condvar { +struct nni_cond { pthread_cond_t cv; pthread_mutex_t * mx; -} +}; #endif #endif // PLATFORM_POSIX_IMPL_H
\ No newline at end of file |
