Re: Profiler showing path dependency?

2020-03-14 Thread Dieter Maurer
Go Luhng wrote at 2020-3-13 18:51 -0400: >Consider a simple call graph: `main()` calls `foo()`, which calls >`bar()`. Then `main()` calls `qux()` which also calls `bar()`, but >with different parameters. > >When you run the above through cProfile and view the result in >SnakeViz, you will see `main

Re: Lock acquisition by the same thread - deadlock protection

2020-03-14 Thread Cameron Simpson
On 12Mar2020 20:08, Dieter Maurer wrote: Yonatan wrote at 2020-3-11 16:24 +0200: That code I'm talking about didn't require a reentrant lock - the algorithm really wasn't reentrant. Let me clarify my point: I'm wondering why the non-reentrant lock doesn't raise an exception immediately on this