From 2f1e799d1225b18e960d426d35b6a83fa80db86f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 12 Mar 2018 15:13:47 -0700 Subject: fixes #281 desire nng_sleep_aio() --- src/nng.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nng.h') diff --git a/src/nng.h b/src/nng.h index 7615785d..b7adee93 100644 --- a/src/nng.h +++ b/src/nng.h @@ -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 *); -- cgit v1.2.3-70-g09d2