[PATCH] client: Add acquire-fd API to avoid requiring a polling main thread
Jiergir Ogoerg
f35f22fan at gmail.com
Wed Apr 10 10:56:36 PDT 2013
Hi Kristian,
Your patch calls like 3 times "pthread_cond_wait(..)", shouldn't each of
these calls be in a loop?
>From a book on pthreads:
"You should always wait for a condition variable in a loop, to protect
against errors,
multiprocessor races, and spurious wakeups."
Kind Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130410/37bd5e2d/attachment.html>
More information about the wayland-devel
mailing list