Skip to content
Snippets Groups Projects
Commit 581a2fe9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

preparser: fix/simplify synchronisation

* Do not share the notification object for two different events.
* Use binary semaphores instead of boolean and condition variables.
* Use an relaxed atomic variable, get rid of unnecessary lock.

In normal cases, the preparse status would not need to be an atomic
variable, as the preparse semaphore serves as proper barrier. However
in the abort case, the status is written by the "wrong" thread.
Still, we can rely on the semaphore to provide a synchronisation
barrier on the status value.
parent 08bd9670
No related branches found
No related tags found
1 merge request!713preparser: fix/simplify synchronisation
Pipeline #146794 passed with stages
in 37 minutes and 49 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment