Moved Thread header to torrent/system directory.

This commit is contained in:
Jari Sundell
2026-04-22 16:02:05 +02:00
committed by GitHub
parent a964b0a350
commit eb96876eb2
15 changed files with 29 additions and 29 deletions
+2 -2
View File
@@ -127,8 +127,8 @@ ThreadScgi::next_timeout() {
namespace scgi_thread {
torrent::utils::Thread* thread() { return scgi::ThreadScgiInternal::thread_scgi(); }
std::thread::id thread_id() { return scgi::ThreadScgiInternal::thread_scgi()->thread_id(); }
torrent::system::Thread* thread() { return scgi::ThreadScgiInternal::thread_scgi(); }
std::thread::id thread_id() { return scgi::ThreadScgiInternal::thread_scgi()->thread_id(); }
void callback(void* target, std::function<void ()>&& fn) { scgi::ThreadScgiInternal::thread_scgi()->callback(target, std::move(fn)); }
void cancel_callback(void* target) { scgi::ThreadScgiInternal::thread_scgi()->cancel_callback(target); }
+2 -2
View File
@@ -3,7 +3,7 @@
#include <atomic>
#include <string>
#include <torrent/utils/thread.h>
#include <torrent/system/thread.h>
namespace rpc {
class SCgi;
@@ -13,7 +13,7 @@ namespace scgi {
class ThreadScgiInternal;
class ThreadScgi : public torrent::utils::Thread {
class ThreadScgi : public torrent::system::Thread {
public:
static void create_thread();