diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-05 09:21:33 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-05 09:48:37 -0800 |
| commit | cf7dda752e1a49cb1003b0e300a5200ff0b0c92e (patch) | |
| tree | 070797fdfbe72a754dbfe6a0f688ce9ab3ac4af8 /src/platform/posix/posix_impl.h | |
| parent | a300db42527a3eff0b037b3aa5fa3ff50f8227d4 (diff) | |
| download | nng-cf7dda752e1a49cb1003b0e300a5200ff0b0c92e.tar.gz nng-cf7dda752e1a49cb1003b0e300a5200ff0b0c92e.tar.bz2 nng-cf7dda752e1a49cb1003b0e300a5200ff0b0c92e.zip | |
platform: eliminate NNI_CV_INITIALIZER altogether
Diffstat (limited to 'src/platform/posix/posix_impl.h')
| -rw-r--r-- | src/platform/posix/posix_impl.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index 4cac6beb..b6435353 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -81,14 +81,6 @@ struct nni_plat_cv { pthread_mutex_t *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)->mtx), .cv = PTHREAD_COND_INITIALIZER \ - } - struct nni_plat_thr { pthread_t tid; void (*func)(void *); |
