[PATCH] Keep client object reference when marking it as zombie
avrac at freebox.fr
Wed May 2 04:22:37 PDT 2012
On 05/02/2012 01:17 PM, Arnaud Vrac wrote:
> This will avoid a race condition on the client side when thread safety
> is implemented. The destruction of a proxy might be done after the
> deletion of its object id in this case: the destruction of the proxy is
> done from the thread in which the object was created, and the deletion
> of the object id is done in the thread the display was created.
> We cannot change the object pointer in the objects map to a magic value
> anymore, so instead we hack the object id on the client side.
This patch assumes that no object that can be marked as a zombie has an
id above WL_SERVER_ID_START on the client side, is that correct ?
Another way to mark an object as a zombie would be to set the lower bit
of the object pointer in the objects map.
More information about the wayland-devel