Skip to content

Commit 3ce13be

Browse files
committed
unlock event queue when handling event.
1 parent 4e3d587 commit 3ce13be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/pc_pomelo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,12 @@ int pc_client_poll(pc_client_t* client)
368368

369369
QUEUE_REMOVE(&ev->queue);
370370
QUEUE_INIT(&ev->queue);
371+
pc_mutex_unlock(&client->event_mutex);
371372

372373
assert((PC_IS_PRE_ALLOC(ev->type) && PC_PRE_ALLOC_IS_BUSY(ev->type)) || PC_IS_DYN_ALLOC(ev->type));
373374

374375
pc__handle_event(client, ev);
376+
pc_mutex_lock(&client->event_mutex);
375377
}
376378
client->is_in_poll = 0;
377379
}

0 commit comments

Comments
 (0)