From 722bf4621703ef238fa81018f8c3e68bcef91354 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 18 Apr 2022 10:25:03 -0400 Subject: fixes #1574 Non-blocking version of nng_aio_wait / nng_aio_result This introduces a new API, nng_aio_busy(), that can be used to query the status of the aio without blocking. Some minor documentation fixes are included. --- src/nng.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/nng.c') diff --git a/src/nng.c b/src/nng.c index c48ccd0b..79259568 100644 --- a/src/nng.c +++ b/src/nng.c @@ -1,5 +1,5 @@ // -// Copyright 2021 Staysail Systems, Inc. +// Copyright 2022 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -1883,6 +1883,12 @@ nng_aio_wait(nng_aio *aio) nni_aio_wait(aio); } +bool +nng_aio_busy(nng_aio *aio) +{ + return (nni_aio_busy(aio)); +} + void nng_aio_abort(nng_aio *aio, int err_code) { -- cgit v1.2.3-70-g09d2