We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7544f7 commit 8ab67a0Copy full SHA for 8ab67a0
NEWS.md
@@ -2,6 +2,7 @@
2
3
#### Updates
4
5
+* `cv_reset()` now correctly resets the flag in the case a flag event has already been registered with `pipe_notify()`.
6
* The previous `listen()` and `dial()` argument `error`, removed in v1.6.0, is now defunct.
7
* The previous `serial_config()` argument `vec`, unutilised since v1.6.0, is removed.
8
src/sync.c
@@ -360,7 +360,7 @@ SEXP rnng_cv_reset(SEXP cvar) {
360
nng_mtx *mtx = ncv->mtx;
361
362
nng_mtx_lock(mtx);
363
- ncv->flag = 0;
+ ncv->flag = ncv->flag < 0;
364
ncv->condition = 0;
365
nng_mtx_unlock(mtx);
366
0 commit comments