mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
d393d12f5c
The windows documentation mentions that ExitThread should not be used in C++ code. When debugging these exit flows I saw exceptions when running dtors. When reviewing the shutdown code for Windows and POSIX there was a lot of complexity. This change allows any part of code to request a shutdown and simplifies the response. We should expect the main thread to call ::waitForShutdown. The exception is the shell, which waits in a repl. |
||
---|---|---|
.. | ||
harnesses | ||
posix | ||
windows | ||
benchmarks.cpp | ||
BUCK | ||
CMakeLists.txt | ||
empty.cpp | ||
main.cpp | ||
main.h | ||
tests.cpp |