Using std::thread/random instead of pthread/rand.
Two of them also suffered from the synchronization problem in D7916.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
| test/functionalities/stop-hook/multiple_threads/main.cpp | ||
|---|---|---|
| 40 ↗ | (On Diff #20976) | 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 ↗ | (On Diff #20976) | Same here |
| 53 ↗ | (On Diff #20976) | Good you replaced this. rand only goes from 0-32767 on Windows. |
| test/functionalities/stop-hook/multiple_threads/main.cpp | ||
|---|---|---|
| 40 ↗ | (On Diff #20976) | I initially did move it to the printf, but the length of the line bothered me. |
Comment Actions
Please update the Makefile for the tests where you replaced pthreads with std::threads to use ENABLE_STD_THREADS instead on ENABLE_THREADS