mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 22:52:31 +00:00
Do thread cleanup within the same thread context.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user