-
-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aarch64: make synch_thread/synch_port work with weak memory model
This patch changes bsd/porting/synch.cc to change _awake variable to an atomic for similar reasons as the t variable in the waiter. In this case, the synch_port::wakeup*() methods use "void thread::wake_with(Action action)" and we need to make sure the _awake variable is visible between CPUs. Signed-off-by: Waldemar Kozaczuk <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters