aboutsummaryrefslogtreecommitdiff
path: root/src/platform/posix/posix_impl.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-05 09:21:33 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-05 09:48:37 -0800
commitcf7dda752e1a49cb1003b0e300a5200ff0b0c92e (patch)
tree070797fdfbe72a754dbfe6a0f688ce9ab3ac4af8 /src/platform/posix/posix_impl.h
parenta300db42527a3eff0b037b3aa5fa3ff50f8227d4 (diff)
downloadnng-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.h8
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 *);