evas-wayland-shm: Minimize race condition when finding free leaf
authorChris Michael <cp.michael@samsung.com>
Wed, 29 Apr 2015 15:49:49 +0000 (11:49 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 29 Apr 2015 15:49:49 +0000 (11:49 -0400)
commitc4e9d294413004bb8253513f77690dfccb8a6d43
tree4f9c678dd66fe563a1ad61a55c26e1f31e485b46
parenta3969b4d3ad2708b22248b7715dd5eb15fa78eac
evas-wayland-shm: Minimize race condition when finding free leaf

Summary: This fixes a possible race condition that could happen when
using more than 2 buffers. Instead of searching for a free buffer in
various places, find a free buffer when evas requests the buffer data
and save that free buffer as the 'current buffer'

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_shm.c