On 2 June 2015 at 16:32, Eugene Birukov <eugen...@hotmail.com> wrote: > I do not fully understand why we need mutex here... Each thread allocates > data in its own memory (either allocated or on stack) and when it breaks > each thread has its own local pointer (either on stack or in register). I.e. > it seems this can be made lock-free.
The situation I was worried about is that if two threads hit the breakpoint in your function simultaneously, you can't tell which hit the breakpoint _first_ -- hence no strict serialization. However, you can still recover all the data from the function calls just fine and as long as you don't care about the ordering between these two function calls you are fine without a mutex. cheers, pl _______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev