-
-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xrCore/Threading/TaskManager.cpp: replace std::condition_variable wit…
…h Event std::condition_variable serves different purpose and event exactly fits our use case. 1. We had used std::condition_variable::wait wrongly as all threads must lock the same mutex and this requirement wasn't satisfied. 2. Previous implementation (before std::condition_variable) was using an event per each worker thread. I only now figured out that we can just use one event. Fixes #1731.
- Loading branch information
1 parent
4f2b04a
commit a370109
Showing
2 changed files
with
6 additions
and
8 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