aboutsummaryrefslogtreecommitdiff
path: root/src/common/virtual_buffer.cpp
diff options
context:
space:
mode:
authorWunkolo <Wunkolo@gmail.com>2022-02-23 16:10:37 -0800
committerWunkolo <Wunkolo@gmail.com>2022-02-27 16:23:52 -0800
commit8da42d8235a9ecdee61c37f08b583042ba468da4 (patch)
tree8c6c2a74dfd32b458a1d6acab70c4b1e98ca99de /src/common/virtual_buffer.cpp
parentb05068b0922b89ac8a09f4411837a41565c99c8e (diff)
logging: Convert `backend_thread` into an `std::jthread`
Was getting an unhandled `invalid_argument` [exception](https://en.cppreference.com/w/cpp/thread/thread/join) during shutdown on my linux machine. This removes the need for a `StopBackendThread` function entirely since `jthread` [automatically handles both checking if the thread is joinable and stopping the token before attempting to join](https://en.cppreference.com/w/cpp/thread/jthread/~jthread) in the case that `StartBackendThread` was never called.
Diffstat (limited to 'src/common/virtual_buffer.cpp')
0 files changed, 0 insertions, 0 deletions