You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Fix a thread pool data race during shutdown
The flag that kills the threads waiting for work was an atomic bool,
but that is not enough: any modification of a condition must be made
under the mutex associated with that condition variable. Otherwise,
the bool value flip and the call to notify might happen after the
condition check in the other thread, but before it starts waiting for
notifications.
0 commit comments