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 74ddc5a commit 9d375b9Copy full SHA for 9d375b9
src/PikaVM.c
@@ -327,14 +327,14 @@ PIKA_RES __eventListener_popEvent(PikaEventListener** lisener_p,
327
if (NULL == cq) {
328
return PIKA_RES_ERR_SIGNAL_EVENT_EMPTY;
329
}
330
- *id = cq->id[g_PikaVMState.cq.head];
+ *id = cq->id[cq->head];
331
if (cq == &g_PikaVMState.cq) {
332
- *data = cq->data[g_PikaVMState.cq.head].arg;
+ *data = cq->data[cq->head].arg;
333
} else {
334
- *signal = cq->data[g_PikaVMState.cq.head].signal;
+ *signal = cq->data[cq->head].signal;
335
*data = NULL;
336
337
- *lisener_p = cq->listener[g_PikaVMState.cq.head];
+ *lisener_p = cq->listener[cq->head];
338
*head = cq->head;
339
cq->head = (cq->head + 1) % PIKA_EVENT_LIST_SIZE;
340
return PIKA_RES_OK;
0 commit comments