Skip to content

Commit

Permalink
update interruptible wait
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jul 26, 2024
1 parent 9860385 commit f228557
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nanonext
Type: Package
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
Version: 1.1.1.9009
Version: 1.1.1.9010
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library implementing 'Scalability Protocols', a reliable,
high-performance standard for common communications patterns including
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nanonext 1.1.1.9009 (development)
# nanonext 1.1.1.9010 (development)

#### New Features

Expand Down
4 changes: 1 addition & 3 deletions src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ SEXP rnng_wait_thread_create(SEXP x) {
if (NANO_TAG(coreaio) != nano_AioSymbol)
return x;

PROTECT(coreaio);
nano_aio *aiop = (nano_aio *) NANO_PTR(coreaio);

nano_thread_aio *taio = R_Calloc(1, nano_thread_aio);
Expand All @@ -265,8 +264,6 @@ SEXP rnng_wait_thread_create(SEXP x) {
SEXP xptr;
PROTECT(xptr = R_MakeExternalPtr(taio, R_NilValue, R_NilValue));
R_RegisterCFinalizerEx(xptr, thread_aio_finalizer, TRUE);
R_MakeWeakRef(coreaio, xptr, R_NilValue, TRUE);
UNPROTECT(2);

nng_time time = nng_clock();

Expand Down Expand Up @@ -303,6 +300,7 @@ SEXP rnng_wait_thread_create(SEXP x) {
break;
}

UNPROTECT(1);
return x;

exitlevel3:
Expand Down

0 comments on commit f228557

Please sign in to comment.