Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cells: fix race condition between thread start and flag check
Motivation: If newly started thread runs before `running` flag is set, then tunnel with shutdown instantly. Thread-1: Create T2 --> | T2.start() | --> set running flag Thread-2: | check flag; exit | Modification: set `running` before thread starts. Result: race is fixed Issue: #5326 Acked-by: Paul Millar Target: master, 10.2 Require-book: no Require-notes: yes (cherry picked from commit 2440b22) Signed-off-by: Tigran Mkrtchyan <[email protected]>
- Loading branch information