diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-03-03 20:36:47 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-03-03 20:36:47 -0800 |
| commit | c17a1dd3f5333da59355ecc3f8788a0396a8f72d (patch) | |
| tree | 77e6790df0fa45b57fafa749f3380fc4b8aa230e /src/core/aio.c | |
| parent | 97614393e450b6c6813021f0e733b864a6265872 (diff) | |
| download | nng-c17a1dd3f5333da59355ecc3f8788a0396a8f72d.tar.gz nng-c17a1dd3f5333da59355ecc3f8788a0396a8f72d.tar.bz2 nng-c17a1dd3f5333da59355ecc3f8788a0396a8f72d.zip | |
Timer implementation. Operations can timeout now?
Diffstat (limited to 'src/core/aio.c')
| -rw-r--r-- | src/core/aio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/aio.c b/src/core/aio.c index ce60385e..a3f4fb28 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -24,6 +24,7 @@ nni_aio_init(nni_aio *aio, nni_cb cb, void *arg) nni_cv_init(&aio->a_cv, &aio->a_lk); aio->a_cb = cb; aio->a_cbarg = arg; + aio->a_expire = NNI_TIME_NEVER; nni_taskq_ent_init(&aio->a_tqe, cb, arg); } |
