Accept a function object instead of a raw pointer. This avoids a bunch
of boilerplate typically needed to pass arguments to the thread
functions.
Details
Details
- Reviewers
JDevlieghere - Commits
- rGd0810779b1f3: [lldb] Modernize ThreadLauncher
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/source/Host/common/HostNativeThreadBase.cpp | ||
---|---|---|
55–58 | This isn't creating a new object. It's taking ownership of an object that was created in the caller (and passed disguised as a void*). |
Comment Actions
Looks like this breaks building on Windows: http://45.33.8.238/win/53761/step_4.txt
Please take a look.
make_unique maybe?