LeviLamina
Loading...
Searching...
No Matches
PlatformThread.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace rtc { struct ThreadAttributes; }
8// clang-format on
9
10namespace rtc {
11
12class PlatformThread {
13public:
14 // member variables
15 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 PlatformThread& operator=(PlatformThread const&);
23 PlatformThread(PlatformThread const&);
24 PlatformThread();
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 virtual ~PlatformThread();
30 // NOLINTEND
31
32public:
33 // static functions
34 // NOLINTBEGIN
35 MCNAPI static ::rtc::PlatformThread
36 SpawnDetached(::std::function<void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes);
37
38 MCNAPI static ::rtc::PlatformThread
39 SpawnJoinable(::std::function<void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes);
40
41 MCNAPI static ::rtc::PlatformThread SpawnThread(
42 ::std::function<void()> thread_function,
43 ::std::string_view name,
44 ::rtc::ThreadAttributes attributes,
45 bool joinable
46 );
47 // NOLINTEND
48
49public:
50 // destructor thunk
51 // NOLINTBEGIN
52 MCNAPI void $dtor();
53 // NOLINTEND
54
55public:
56 // vftables
57 // NOLINTBEGIN
58 MCNAPI static void** $vftable();
59 // NOLINTEND
60};
61
62} // namespace rtc
static MCAPI ::rtc::PlatformThread SpawnJoinable(::std::function< void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes)
static MCAPI ::rtc::PlatformThread SpawnDetached(::std::function< void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes)
MCAPI void $dtor()
static MCAPI void ** $vftable()
static MCAPI ::rtc::PlatformThread SpawnThread(::std::function< void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes, bool joinable)
Definition Alias.h:14
Definition ThreadAttributes.h:7