diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-03-12 15:13:47 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-03-12 15:13:47 -0700 |
| commit | 2f1e799d1225b18e960d426d35b6a83fa80db86f (patch) | |
| tree | f02c8fb94ede04586e005cc8905ba6ccae740a5d /src/nng.h | |
| parent | 6ae722de957b33a3520e46a94bb1f970991a9a42 (diff) | |
| download | nng-2f1e799d1225b18e960d426d35b6a83fa80db86f.tar.gz nng-2f1e799d1225b18e960d426d35b6a83fa80db86f.tar.bz2 nng-2f1e799d1225b18e960d426d35b6a83fa80db86f.zip | |
fixes #281 desire nng_sleep_aio()
Diffstat (limited to 'src/nng.h')
| -rw-r--r-- | src/nng.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -352,6 +352,11 @@ NNG_DECL int nng_aio_set_iov(nng_aio *, unsigned, const nng_iov *); // given aio. NNG_DECL void nng_aio_finish(nng_aio *, int); +// nng_aio_sleep does a "sleeping" operation, basically does nothing +// but wait for the specified number of milliseconds to expire, then +// calls the callback. This returns 0, rather than NNG_ETIMEDOUT. +NNG_DECL void nng_sleep_aio(nng_duration, nng_aio *); + // Message API. NNG_DECL int nng_msg_alloc(nng_msg **, size_t); NNG_DECL void nng_msg_free(nng_msg *); |
