TSAN WARNING: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread)
I have write the following member function in my class which executes in a seperate thread and it sets the _cancellationRequested to true and execution function which runs in a seperate thread detects that variable and cancel the execution and return.
All good in functionality. However I’m getting a TSAN warning as