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

2015-10-21 Thread Derek Foreman
Pushed. On 19/10/15 08:54 PM, 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 destroyed

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

2015-10-19 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