diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-12-05 23:39:22 -0500 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-12-05 23:39:22 -0500 |
| commit | 21528dfe0998d056222191a4abe53d8d9f1286e3 (patch) | |
| tree | 3231c744883aa89af32e75f2d775e1cc8b63c1f8 /src/platform/windows/win_impl.h | |
| parent | c9bbe8eb574fe10ff16cc71a23fcc9b31fb8ed04 (diff) | |
| download | nng-21528dfe0998d056222191a4abe53d8d9f1286e3.tar.gz nng-21528dfe0998d056222191a4abe53d8d9f1286e3.tar.bz2 nng-21528dfe0998d056222191a4abe53d8d9f1286e3.zip | |
Static condvar initialization.
Diffstat (limited to 'src/platform/windows/win_impl.h')
| -rw-r--r-- | src/platform/windows/win_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h index b3c08edf..bbd007d0 100644 --- a/src/platform/windows/win_impl.h +++ b/src/platform/windows/win_impl.h @@ -53,6 +53,8 @@ struct nni_plat_cv { PSRWLOCK srl; }; +#define NNI_CV_INITIALIZER(mxp) { .srl = mxp, .cv = CONDITION_VARIABLE_INIT } + struct nni_atomic_flag { unsigned f; }; |
