diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-07-11 13:03:54 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-07-11 13:04:28 -0700 |
| commit | ca41e1c52a2264a63dcf6604a49e29b1d4a221c6 (patch) | |
| tree | 4972c47d609594c596c2383b8ad2aaa2615a6962 /src/platform/windows/win_impl.h | |
| parent | 9fcf039b573d153ba9bbc2beb5f11259ddacdcff (diff) | |
| download | nng-ca41e1c52a2264a63dcf6604a49e29b1d4a221c6.tar.gz nng-ca41e1c52a2264a63dcf6604a49e29b1d4a221c6.tar.bz2 nng-ca41e1c52a2264a63dcf6604a49e29b1d4a221c6.zip | |
fixes #1409 reader/writer lock desired
This provides the initial implementation, and converts the
transport lookup routines to use it. This is probably of limited
performance benefit, but rwlock's may be useful in further future work.
Diffstat (limited to 'src/platform/windows/win_impl.h')
| -rw-r--r-- | src/platform/windows/win_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h index 17260676..de4f8e5b 100644 --- a/src/platform/windows/win_impl.h +++ b/src/platform/windows/win_impl.h @@ -41,6 +41,11 @@ struct nni_plat_mtx { int init; }; +struct nni_rwlock { + SRWLOCK rwl; + BOOLEAN exclusive; +}; + struct nni_plat_cv { CONDITION_VARIABLE cv; PSRWLOCK srl; |
