LeviLamina
Loading...
Searching...
No Matches
ThreadManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { class Thread; }
8// clang-format on
9
10namespace rtc {
11
12class ThreadManager {
13public:
14 // member variables
15 // NOLINTBEGIN
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 ThreadManager& operator=(ThreadManager const&);
24 ThreadManager(ThreadManager const&);
25 ThreadManager();
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCNAPI ::rtc::Thread* CurrentThread();
31
32 MCNAPI void SetCurrentThread(::rtc::Thread* thread);
33
34 MCNAPI void UnwrapCurrentThread();
35
36 MCNAPI ::rtc::Thread* WrapCurrentThread();
37 // NOLINTEND
38
39public:
40 // static functions
41 // NOLINTBEGIN
42 MCNAPI static void Add(::rtc::Thread* message_queue);
43
44 MCNAPI static ::rtc::ThreadManager* Instance();
45
46 MCNAPI static void Remove(::rtc::Thread* message_queue);
47 // NOLINTEND
48};
49
50} // namespace rtc
MCAPI void UnwrapCurrentThread()
static MCAPI ::rtc::ThreadManager * Instance()
static MCAPI void Remove(::rtc::Thread *message_queue)
static MCAPI void Add(::rtc::Thread *message_queue)
MCAPI::rtc::Thread * WrapCurrentThread()
MCAPI::rtc::Thread * CurrentThread()
MCAPI void SetCurrentThread(::rtc::Thread *thread)
Definition Thread.h:20
Definition Alias.h:14