Skip to content

Commit

Permalink
unlock event queue when handling event.
Browse files Browse the repository at this point in the history
  • Loading branch information
xpol committed Apr 29, 2016
1 parent 4e3d587 commit 3ce13be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pc_pomelo.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,12 @@ int pc_client_poll(pc_client_t* client)

QUEUE_REMOVE(&ev->queue);
QUEUE_INIT(&ev->queue);
pc_mutex_unlock(&client->event_mutex);

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

pc__handle_event(client, ev);
pc_mutex_lock(&client->event_mutex);
}
client->is_in_poll = 0;
}
Expand Down

0 comments on commit 3ce13be

Please sign in to comment.