Re: [PATCH v2 wayland] shm: Add shm_buffer ref and shm_pool unref functions

2015-10-19 Thread Derek Foreman
On 16/10/15 08:34 AM, Pekka Paalanen wrote: > On Mon, 5 Oct 2015 13:12:12 -0500 > Derek Foreman wrote: > >> Sometimes the compositor wants to make sure a shm pool doesn't disappear >> out from under it. >> >> For example, in Enlightenment, rendering happens in a separate thread >> while the main

Re: [PATCH v2 wayland] shm: Add shm_buffer ref and shm_pool unref functions

2015-10-16 Thread Pekka Paalanen
On Mon, 5 Oct 2015 13:12:12 -0500 Derek Foreman wrote: > Sometimes the compositor wants to make sure a shm pool doesn't disappear > out from under it. > > For example, in Enlightenment, rendering happens in a separate thread > while the main thread can still dispatch events. If a client is des

[PATCH v2 wayland] shm: Add shm_buffer ref and shm_pool unref functions

2015-10-05 Thread Derek Foreman
Sometimes the compositor wants to make sure a shm pool doesn't disappear out from under it. For example, in Enlightenment, rendering happens in a separate thread while the main thread can still dispatch events. If a client is destroyed during rendering, all its resources are cleaned up and its sh