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
13public:
14 // member variables
15 // NOLINTBEGIN
18 // NOLINTEND
19
20public:
21 // prevent constructor by default
22 PlatformThread& operator=(PlatformThread const&);
25
26public:
27 // virtual functions
28 // NOLINTBEGIN
29 // vIndex: 0
30 virtual ~PlatformThread();
31 // NOLINTEND
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCNAPI void Finalize();
37
38 MCNAPI PlatformThread(void* handle, bool joinable);
39 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCNAPI static ::rtc::PlatformThread
45 SpawnDetached(::std::function<void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes);
46
47 MCNAPI static ::rtc::PlatformThread
48 SpawnJoinable(::std::function<void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes);
49
50 MCNAPI static ::rtc::PlatformThread SpawnThread(
51 ::std::function<void()> thread_function,
52 ::std::string_view name,
53 ::rtc::ThreadAttributes attributes,
54 bool joinable
55 );
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCNAPI void* $ctor(void* handle, bool joinable);
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCNAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
76
77} // namespace rtc
Definition PlatformThread.h:12
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 * $ctor(void *handle, bool joinable)
MCAPI void $dtor()
static MCAPI void ** $vftable()
MCAPI void Finalize()
static MCAPI ::rtc::PlatformThread SpawnThread(::std::function< void()> thread_function, ::std::string_view name, ::rtc::ThreadAttributes attributes, bool joinable)
MCAPI PlatformThread(void *handle, bool joinable)
Definition Alias.h:14
Definition ThreadAttributes.h:7