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
+6 -5
View File
@@ -3,11 +3,10 @@
#include "test_thread.h"
#include <unistd.h>
#include <cppunit/extensions/HelperMacros.h>
#include <torrent/exceptions.h>
#include <torrent/poll.h>
#include "test/helpers/mock_function.h"
#include "torrent/exceptions.h"
#include "torrent/poll.h"
const int test_thread::test_flag_pre_stop;
const int test_thread::test_flag_long_timeout;
@@ -33,8 +32,6 @@ test_thread::test_thread() :
test_thread::~test_thread() {
if (is_active())
stop_thread_wait();
m_self = nullptr;
}
void
@@ -43,6 +40,10 @@ test_thread::init_thread() {
m_test_state = TEST_PRE_START;
}
void
test_thread::cleanup_thread() {
}
void
test_thread::call_events() {
m_loop_count++;