Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/ovs-thread: Avoid atomic read in ovsthread_once_start().
We can use a normal bool and rely on the mutex_lock/unlock and an atomic_thread_fence for synchronization. Also flip the return value of ovsthread_once_start__() to match the one of ovsthread_once_start(). Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
- Loading branch information
Jarno Rajahalme
committed
Aug 29, 2014
1 parent
6f00886
commit 9230662
Showing
2 changed files
with
18 additions
and
18 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
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