gallium/u_queue: rewrite util_queue_fence to allow multiple waiters
authorMarek Olšák <marek.olsak@amd.com>
Sat, 11 Jun 2016 15:51:22 +0000 (17:51 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 24 Jun 2016 10:24:40 +0000 (12:24 +0200)
commit4358f6dd130680d60d48d6646959c11c8d7ca13d
tree9c9b63be1caf15bd655e9be749185d448c905923
parentd8367e91f2e3d8426e77674b39f36c09ed9992ec
gallium/u_queue: rewrite util_queue_fence to allow multiple waiters

Checking "signalled" is first done without a mutex, then with a mutex.
Also, checking without waiting doesn't lock the mutex. This is racy, but
should be safe.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_queue.c
src/gallium/auxiliary/util/u_queue.h