Created
October 18, 2012 13:32
-
-
Save dvdhrm/3911820 to your computer and use it in GitHub Desktop.
libwayland-client pthread mutex bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/wayland-client.c b/src/wayland-client.c | |
| index ccf8174..e36af7a 100644 | |
| --- a/src/wayland-client.c | |
| +++ b/src/wayland-client.c | |
| @@ -500,9 +500,9 @@ wl_display_connect_to_fd(int fd) | |
| display->fd = fd; | |
| wl_map_init(&display->objects); | |
| - wl_event_queue_init(&display->queue, display); | |
| wl_list_init(&display->event_queue_list); | |
| pthread_mutex_init(&display->mutex, NULL); | |
| + wl_event_queue_init(&display->queue, display); | |
| wl_map_insert_new(&display->objects, WL_MAP_CLIENT_SIDE, NULL); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment