Re: [PATCH wayland 1/4 v2] client: Introduce proxy wrappers

2016-04-27 Thread Pekka Paalanen
On Wed, 27 Apr 2016 15:37:38 +0800 Jonas Ådahl wrote: > Using the libwayland-client client API with multiple threads with > thread local queues are prone to race conditions. > > The problem is that one thread can read and dispatch events after Hi Jonas, this should say: "The problem is that on

[PATCH wayland 1/4 v2] client: Introduce proxy wrappers

2016-04-27 Thread Jonas Ådahl
Using the libwayland-client client API with multiple threads with thread local queues are prone to race conditions. The problem is that one thread can read and dispatch events after another thread creates the wl_callback object but before it sets the queue. This could potentially cause the events