LeviLamina
Loading...
Searching...
No Matches
Thread.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/absl/AnyInvocable.h"
7#include "mc/external/rtc/FunctionView.h"
8#include "mc/external/webrtc/TaskQueueBase.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace rtc { class SocketServer; }
13namespace rtc { class ThreadManager; }
14namespace webrtc { class Location; }
15namespace webrtc { class TimeDelta; }
16// clang-format on
17
18namespace rtc {
19
21public:
22 // Thread inner types declare
23 // clang-format off
25 struct DelayedMessage;
27 // clang-format on
28
29 // Thread inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
36 // NOLINTEND
37
38 public:
39 // prevent constructor by default
42
43 public:
44 // member functions
45 // NOLINTBEGIN
47
49 // NOLINTEND
50
51 public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCNAPI void* $ctor();
55 // NOLINTEND
56
57 public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCNAPI void $dtor();
61 // NOLINTEND
62 };
63
65 public:
66 // member variables
67 // NOLINTBEGIN
70 // NOLINTEND
71
72 public:
73 // prevent constructor by default
77 };
78
80 public:
81 // member variables
82 // NOLINTBEGIN
87 // NOLINTEND
88
89 public:
90 // prevent constructor by default
91 DelayedMessage& operator=(DelayedMessage const&);
94
95 public:
96 // member functions
97 // NOLINTBEGIN
99
100 MCNAPI ::rtc::Thread::DelayedMessage& operator=(::rtc::Thread::DelayedMessage&&);
101
103 // NOLINTEND
104
105 public:
106 // constructor thunks
107 // NOLINTBEGIN
109 // NOLINTEND
110
111 public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCNAPI void $dtor();
115 // NOLINTEND
116 };
117
118public:
119 // member variables
120 // NOLINTBEGIN
137 // NOLINTEND
138
139public:
140 // prevent constructor by default
141 Thread& operator=(Thread const&);
142 Thread(Thread const&);
143 Thread();
144
145public:
146 // virtual functions
147 // NOLINTBEGIN
148 // vIndex: 3
149 virtual ~Thread() /*override*/ = default;
150
151 // vIndex: 4
152 virtual void Quit();
153
154 // vIndex: 5
155 virtual bool IsQuitting();
156
157 // vIndex: 6
158 virtual void Restart();
159
160 // vIndex: 7
161 virtual bool IsProcessingMessagesForTesting();
162
163 // vIndex: 8
164 virtual int GetDelay();
165
166 // vIndex: 9
167 virtual void Stop();
168
169 // vIndex: 10
170 virtual void Run();
171
172 // vIndex: 0
173 virtual void Delete() /*override*/;
174
175 // vIndex: 1
176 virtual void PostTaskImpl(
177 ::absl::AnyInvocable<void() &&>,
179 ::webrtc::Location const&
180 ) /*override*/;
181
182 // vIndex: 2
183 virtual void PostDelayedTaskImpl(
184 ::absl::AnyInvocable<void() &&>,
187 ::webrtc::Location const&
188 ) /*override*/;
189
190 // vIndex: 11
191 virtual void BlockingCallImpl(::rtc::FunctionView<void()>, ::webrtc::Location const&);
192 // NOLINTEND
193
194public:
195 // member functions
196 // NOLINTBEGIN
198
200
201 MCNAPI void DisallowAllInvokes();
202
203 MCNAPI void Dispatch(::absl::AnyInvocable<void() &&>);
204
205 MCNAPI void DoDestroy();
206
207 MCNAPI void DoInit();
208
210
211 MCNAPI ::absl::AnyInvocable<void() &&> Get(int);
212
213 MCNAPI bool IsCurrent() const;
214
215 MCNAPI bool IsOwned();
216
217 MCNAPI bool IsRunning();
218
219 MCNAPI void Join();
220
221 MCNAPI bool ProcessMessages(int);
222
223 MCNAPI bool SetAllowBlockingCalls(bool);
224
225 MCNAPI void SetDispatchWarningMs(int);
226
227 MCNAPI bool SetName(::std::string_view, void const*);
228
229 MCNAPI bool Start();
230
231 MCNAPI explicit Thread(::rtc::SocketServer*);
232
233 MCNAPI explicit Thread(::std::unique_ptr<::rtc::SocketServer>);
234
235 MCNAPI Thread(::std::unique_ptr<::rtc::SocketServer>, bool);
236
238
239 MCNAPI void UnwrapCurrent();
240
241 MCNAPI void WakeUpSocketServer();
242
244
245 MCNAPI ::rtc::SocketServer* socketserver();
246 // NOLINTEND
247
248public:
249 // static functions
250 // NOLINTBEGIN
251 MCNAPI static ::std::unique_ptr<::rtc::Thread> Create();
252
253 MCNAPI static ::rtc::Thread* Current();
254
255 MCNAPI static ulong PreRun(void*);
256 // NOLINTEND
257
258public:
259 // constructor thunks
260 // NOLINTBEGIN
262
263 MCNAPI void* $ctor(::std::unique_ptr<::rtc::SocketServer>);
264
265 MCNAPI void* $ctor(::std::unique_ptr<::rtc::SocketServer>, bool);
266
267 MCNAPI void* $ctor(::rtc::SocketServer*, bool);
268 // NOLINTEND
269
270public:
271 // virtual function thunks
272 // NOLINTBEGIN
273
274 // NOLINTEND
275
276public:
277 // vftables
278 // NOLINTBEGIN
279 MCNAPI static void** $vftable();
280 // NOLINTEND
281};
282
283} // namespace rtc
Definition AnyInvocable.h:8
Definition FunctionView.h:8
Definition SocketServer.h:16
Definition ThreadManager.h:12
Definition Thread.h:64
Definition Thread.h:20
MCAPI bool SetAllowBlockingCalls(bool)
static MCAPI ulong PreRun(void *)
MCAPI bool WrapCurrentWithThreadManager(::rtc::ThreadManager *, bool)
MCAPI bool SetName(::std::string_view, void const *)
MCAPI void ClearCurrentTaskQueue()
MCAPI void * $ctor(::std::unique_ptr<::rtc::SocketServer >)
MCAPI bool IsCurrent() const
MCAPI void WakeUpSocketServer()
MCAPI void * $ctor(::rtc::SocketServer *)
MCAPI void AllowInvokesToThread(::rtc::Thread *)
MCAPI void EnsureIsCurrentTaskQueue()
MCAPI void DisallowAllInvokes()
static MCAPI void ** $vftable()
MCAPI bool Start()
MCAPI void SetDispatchWarningMs(int)
MCAPI void Dispatch(::absl::AnyInvocable< void() && >)
MCAPI Thread(::rtc::SocketServer *, bool)
MCAPI void DoInit()
MCAPI void DoDestroy()
MCAPI bool ProcessMessages(int)
static MCAPI ::rtc::Thread * Current()
MCAPI ::absl::AnyInvocable< void() && > Get(int)
MCAPI void * $ctor(::rtc::SocketServer *, bool)
MCAPI void Join()
MCAPI bool IsRunning()
MCAPI::rtc::SocketServer * socketserver()
MCAPI Thread(::std::unique_ptr<::rtc::SocketServer >, bool)
MCAPI Thread(::rtc::SocketServer *)
MCAPI void * $ctor(::std::unique_ptr<::rtc::SocketServer >, bool)
MCAPI Thread(::std::unique_ptr<::rtc::SocketServer >)
MCAPI bool IsOwned()
MCAPI void UnwrapCurrent()
static MCAPI ::std::unique_ptr<::rtc::Thread > Create()
Definition Location.h:7
Definition TaskQueueBase.h:16
Definition TimeDelta.h:10
Definition Alias.h:14
Definition Thread.h:79
MCAPI::rtc::Thread::DelayedMessage & operator=(::rtc::Thread::DelayedMessage &&)
MCAPI DelayedMessage(::rtc::Thread::DelayedMessage &&)
MCAPI void * $ctor(::rtc::Thread::DelayedMessage &&)
Definition TaskQueueBase.h:31