Do thread cleanup within the same thread context.

This commit is contained in:
rakshasa
2025-05-30 10:16:03 +02:00
committed by Jari Sundell
parent de6c48ca3f
commit 2d565d1c80
7 changed files with 119 additions and 24 deletions
+2
View File
@@ -4,6 +4,7 @@
#include <atomic>
#include <memory>
#include "test/helpers/test_utils.h"
#include "torrent/common.h"
#include "torrent/utils/thread.h"
@@ -40,6 +41,7 @@ public:
const char* name() const override { return "test_thread"; }
void init_thread() override;
void cleanup_thread() override;
void set_pre_stop() { m_test_flags |= test_flag_pre_stop; }
void set_test_flag(int flags) { m_test_flags |= flags; }