Commit 3f7ccc0
committed
Fix spurious continue in the debug mode
This patch fixes the problem I came across when tried to use the
debugger on MacOS with arm64. When Lua hit breakpoint it captured it
though the program execution did not stop since the debug loop exited
almost instantly.
Debug prints showed that this happened due to the spurious wake ups of
the conditional variable `cvRun`. None of the methods notified this
conditional so it seems it is a spurious wake up. Probably it is
specific to the architecture.
This small patch fixes this by adding a predicate to the conditional
variable. It waits until the debugging is finished or there are
evals to run.1 parent 7d0a4a9 commit 3f7ccc0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
0 commit comments