Using std::thread/random instead of pthread/rand.
Two of them also suffered from the synchronization problem in D7916.
Details
Diff Detail
Event Timeline
test/functionalities/stop-hook/multiple_threads/main.cpp | ||
---|---|---|
40 | The test sets a breakpoint on this line. That seems not great because there is executable code on this line. lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py:39 I think you should move the comment to the printf, but if it works it's up to you. | |
test/functionalities/watchpoint/multiple_threads/main.cpp | ||
44–45 | Same here | |
53 | Good you replaced this. rand only goes from 0-32767 on Windows. |
test/functionalities/stop-hook/multiple_threads/main.cpp | ||
---|---|---|
40 | I initially did move it to the printf, but the length of the line bothered me. |
Please update the Makefile for the tests where you replaced pthreads with std::threads to use ENABLE_STD_THREADS instead on ENABLE_THREADS
The test sets a breakpoint on this line. That seems not great because there is executable code on this line.
lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py:39
I think you should move the comment to the printf, but if it works it's up to you.