Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor PauseDetectorWrapper retrieval #1300
Previously, PauseDetectorWrapper was initialized once and a later loop attempted to retrieve the PauseDetector assuming that the previous code would had initialized the PauseDetector. Due to concurrency it is possible that the PauseDetector instance is being released while another thread wants to obtain the PauseDetector. This gap could lead to infinite loops as the instance is never allocated. The refactored code include now the initialization so concurrent initialization/release are now properly guarded.
- Loading branch information