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 MCAPI void* $ctor();
55 // NOLINTEND
56
57 public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCAPI 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 MCAPI ::rtc::Thread::DelayedMessage& operator=(::rtc::Thread::DelayedMessage&&);
101
102 MCAPI ~DelayedMessage();
103 // NOLINTEND
104
105 public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void* $ctor(::rtc::Thread::DelayedMessage&&);
109 // NOLINTEND
110
111 public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCAPI 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
177 PostTaskImpl(::absl::AnyInvocable<void() &&>, ::webrtc::TaskQueueBase::PostTaskTraits const&, ::webrtc::Location const&) /*override*/
178 ;
179
180 // vIndex: 2
181 virtual void
182 PostDelayedTaskImpl(::absl::AnyInvocable<void() &&>, ::webrtc::TimeDelta, ::webrtc::TaskQueueBase::PostDelayedTaskTraits const&, ::webrtc::Location const&) /*override*/
183 ;
184
185 // vIndex: 11
186 virtual void BlockingCallImpl(::rtc::FunctionView<void()>, ::webrtc::Location const&);
187 // NOLINTEND
188
189public:
190 // member functions
191 // NOLINTBEGIN
192 MCAPI void AllowInvokesToThread(::rtc::Thread*);
193
194 MCAPI void ClearCurrentTaskQueue();
195
196 MCAPI void DisallowAllInvokes();
197
198 MCAPI void Dispatch(::absl::AnyInvocable<void() &&>);
199
200 MCAPI void DoDestroy();
201
202 MCAPI void DoInit();
203
204 MCAPI void EnsureIsCurrentTaskQueue();
205
206 MCAPI ::absl::AnyInvocable<void() &&> Get(int);
207
208 MCAPI bool IsCurrent() const;
209
210 MCAPI bool IsOwned();
211
212 MCAPI bool IsRunning();
213
214 MCAPI void Join();
215
216 MCAPI bool ProcessMessages(int);
217
218 MCAPI bool SetAllowBlockingCalls(bool);
219
220 MCAPI void SetDispatchWarningMs(int);
221
222 MCAPI bool SetName(::std::string_view, void const*);
223
224 MCAPI bool Start();
225
226 MCAPI explicit Thread(::rtc::SocketServer*);
227
228 MCAPI explicit Thread(::std::unique_ptr<::rtc::SocketServer>);
229
230 MCAPI Thread(::std::unique_ptr<::rtc::SocketServer>, bool);
231
232 MCAPI Thread(::rtc::SocketServer*, bool);
233
234 MCAPI void UnwrapCurrent();
235
236 MCAPI void WakeUpSocketServer();
237
238 MCAPI bool WrapCurrentWithThreadManager(::rtc::ThreadManager*, bool);
239
240 MCAPI ::rtc::SocketServer* socketserver();
241 // NOLINTEND
242
243public:
244 // static functions
245 // NOLINTBEGIN
246 MCAPI static ::std::unique_ptr<::rtc::Thread> Create();
247
248 MCAPI static ::rtc::Thread* Current();
249
250 MCAPI static ulong PreRun(void*);
251 // NOLINTEND
252
253public:
254 // constructor thunks
255 // NOLINTBEGIN
256 MCAPI void* $ctor(::rtc::SocketServer*);
257
258 MCAPI void* $ctor(::std::unique_ptr<::rtc::SocketServer>);
259
260 MCAPI void* $ctor(::std::unique_ptr<::rtc::SocketServer>, bool);
261
262 MCAPI void* $ctor(::rtc::SocketServer*, bool);
263 // NOLINTEND
264
265public:
266 // destructor thunk
267 // NOLINTBEGIN
268
269 // NOLINTEND
270
271public:
272 // virtual function thunks
273 // NOLINTBEGIN
274
275 // NOLINTEND
276
277public:
278 // vftables
279 // NOLINTBEGIN
280 MCAPI static void** $vftable();
281 // NOLINTEND
282};
283
284} // 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
Definition Location.h:7
Definition TaskQueueBase.h:16
Definition TimeDelta.h:10
Definition Alias.h:14
Definition Thread.h:79
Definition TaskQueueBase.h:31