diff options
Diffstat (limited to 'src/platform/posix/posix_impl.h')
| -rw-r--r-- | src/platform/posix/posix_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index 97924a45..0ee7cb38 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -73,6 +73,11 @@ struct nni_plat_cv { nni_plat_mtx *mtx; }; +// NOTE: condition variables initialized with this should *NOT* +// be used with nni_cv_until -- the clock attributes are not passed +// and the wake-up times will not be correct. +#define NNI_CV_INITIALIZER(mxp) { .mtx = mxp, .cv = PTHREAD_COND_INITIALIZER } + struct nni_plat_thr { pthread_t tid; void (*func)(void *); |
