diff options
author | Tom Stellard <[email protected]> | 2015-03-26 19:33:24 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2015-05-11 18:52:29 +0000 |
commit | 9c4dc98b298c74015f2a7c21571bccf0a5b6cc98 (patch) | |
tree | 2f4d848248f96b9e6e98073d16993e90ab09d819 /include/c99_alloca.h | |
parent | f546902d9597429713c83e2caf6b69856bd7ba4d (diff) |
clover: Fix a bug with multi-threaded events v2
It was possible for some events never to get triggered if one thread
was creating events and another threads was waiting for them.
This patch consolidates soft_event::wait() and hard_event::wait()
into event::wait() so that hard_event objects will now wait for
all their dependencies to be submitted before flushing the command
queue.
v2:
- Rename variables
- Use mutable varibales so we can keep event::wait() const
- Open code signalled() call so mutex can be atted to signalled
without deadlocking.
CC: 10.5 <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'include/c99_alloca.h')
0 files changed, 0 insertions, 0 deletions