mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 22:44:01 +00:00
Attempt to fix the tsan build
Deliberately leak the shared thread pool to avoid shutdown dtor registration and tsan complaints at exit.
This commit is contained in:
parent
66c2266ed1
commit
792abf61ec
1 changed files with 2 additions and 1 deletions
|
@ -131,7 +131,8 @@ struct thread_pool_t {
|
|||
|
||||
/// The thread pool for "iothreads" which are used to lift I/O off of the main thread.
|
||||
/// These are used for completions, etc.
|
||||
static thread_pool_t s_io_thread_pool(1, IO_MAX_THREADS);
|
||||
/// Leaked to avoid shutdown dtor registration (including tsan).
|
||||
static thread_pool_t &s_io_thread_pool = *(new thread_pool_t(1, IO_MAX_THREADS));
|
||||
|
||||
static owning_lock<std::queue<void_function_t>> s_result_queue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue