Skip to content

Commit 65672dd

Browse files
committed
update baseline
1 parent 55bf06b commit 65672dd

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 1.2.1.9012
4+
Version: 1.2.1.9013
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library implementing 'Scalability Protocols', a reliable,
77
high-performance standard for common communications patterns including

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nanonext 1.2.1.9012 (development)
1+
# nanonext 1.2.1.9013 (development)
22

33
#### New Features
44

src/aio.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,8 @@ SEXP rnng_aio_get_msg(SEXP env) {
209209
case RECVAIOS:
210210
case REQAIOS:
211211
case IOV_RECVAIOS: ;
212-
nano_cv *ncv;
213-
if (raio->type == REQAIOS) {
214-
nano_rsaio *saio = (nano_rsaio *) raio->next;
215-
ncv = (nano_cv *) saio->next;
216-
} else {
217-
ncv = (nano_cv *) raio->next;
218-
}
212+
nano_cv *ncv = raio->type == REQAIOS ? (nano_cv *) ((nano_rsaio *) raio->next)->next :
213+
(nano_cv *) raio->next;
219214
nng_mtx *mtx = ncv->mtx;
220215
nng_mtx_lock(mtx);
221216
res = raio->result;

src/sync.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ static void request_complete_dropcon(void *arg) {
5454
static void request_complete_signal(void *arg) {
5555

5656
nano_aio *raio = (nano_aio *) arg;
57-
nano_rsaio *saio = (nano_rsaio *) raio->next;
58-
nano_cv *ncv = (nano_cv *) saio->next;
57+
nano_cv *ncv = (nano_cv *) ((nano_rsaio *) raio->next)->next;
5958
nng_cv *cv = ncv->cv;
6059
nng_mtx *mtx = ncv->mtx;
6160

@@ -76,7 +75,7 @@ static void request_complete_signal(void *arg) {
7675

7776
static void sendaio_complete(void *arg) {
7877

79-
nng_aio *aio = (nng_aio *) arg;
78+
nng_aio *aio = ((nano_rsaio *) arg)->aio;
8079
if (nng_aio_result(aio))
8180
nng_msg_free(nng_aio_get_msg(aio));
8281

@@ -452,7 +451,7 @@ SEXP rnng_request(SEXP con, SEXP data, SEXP sendmode, SEXP recvmode, SEXP timeou
452451
goto exitlevel1;
453452

454453
if ((xc = nng_msg_append(msg, buf.buf, buf.cur)) ||
455-
(xc = nng_aio_alloc(&saio->aio, sendaio_complete, &saio->aio))) {
454+
(xc = nng_aio_alloc(&saio->aio, sendaio_complete, saio))) {
456455
nng_msg_free(msg);
457456
goto exitlevel1;
458457
}

0 commit comments

Comments
 (0)