Skip to content

Instantly share code, notes, and snippets.

@dvdhrm
Created October 18, 2012 13:32
Show Gist options
  • Select an option

  • Save dvdhrm/3911820 to your computer and use it in GitHub Desktop.

Select an option

Save dvdhrm/3911820 to your computer and use it in GitHub Desktop.
libwayland-client pthread mutex bug
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