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>
Fri, 21 Apr 2017 12:39:57 +0000 (13:39 +0100)
commit52df318d61f4892dbbaa8f0da4787f25caf1b0d1
tree5864f5c7f865821e9a4d0fdb9cb717a8995f7843
parentdd6ec78b4fc1208c9ec330642ad42361fea91678
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>
src/mesa/main/glthread.c