OSDN Git Service

mesa/glthread: correctly compare thread handles
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 20 Apr 2017 15:24:08 +0000 (16:24 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Apr 2017 12:13:22 +0000 (13:13 +0100)
commit612fc14aab46e85452915d6e77fffee7bb94cfe5
treeb15480069900db28441f3d195f0ad84995dc8225
parent8aa9aa6a5f86891c106bcc95d88377af1bfa0406
mesa/glthread: correctly compare thread handles

As mentioned in the manual - comparing pthread_t handles via the C
comparison operator is incorrect and pthread_equal() should be used
instead.

Cc: Timothy Arceri <tarceri@itsqueeze.com>
Fixes: d8d81fbc316 ("mesa: Add infrastructure for a worker thread to process GL commands.")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 52df318d61f4892dbbaa8f0da4787f25caf1b0d1)
src/mesa/main/glthread.c