ilmControl: control_thread uses eventfd for shutdown signal
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Fri, 1 Aug 2014 06:55:27 +0000 (08:55 +0200)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Tue, 12 Aug 2014 13:15:16 +0000 (22:15 +0900)
commit82f778b3475740a20af06ef7025dee25f1f9f067
treef532b3243fed9cf6947f1d13e2578873e8d4843a
parent64ed958e3324947a86a129b3232117dbd37139aa
ilmControl: control_thread uses eventfd for shutdown signal

Do not use pthread_cancel to shutdown control_thread. This could cause
stale locks in libwayland-client when the cancel was received when
the display lock (according to the current 1.3 implementation) is held.

To alleviate this, one could disable thread_cancellation in
control_thread during wl_* calls, this however is one more hack to the
cancel-to-shutdown hack. Instead, use a clean interface to send an
event to the control_thread when it's time to shutdown.

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c