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/bx/MpScUnboundedBlockingQueue.h"
7#include "mc/external/bx/Semaphore.h"
8
9namespace bx {
10
11class Thread {
12public:
13 // member variables
14 // NOLINTBEGIN
15 ::ll::TypedStorage<1, 64, uchar[64]> m_internal;
16 ::ll::TypedStorage<8, 8, int (*)(::bx::Thread*, void*)> m_fn;
17 ::ll::TypedStorage<8, 8, void*> m_userData;
18 ::ll::TypedStorage<8, 224, ::bx::MpScUnboundedBlockingQueue<void>> m_queue;
19 ::ll::TypedStorage<1, 128, ::bx::Semaphore> m_sem;
20 ::ll::TypedStorage<4, 4, uint> m_stackSize;
21 ::ll::TypedStorage<4, 4, int> m_exitCode;
22 ::ll::TypedStorage<1, 1, bool> m_running;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~Thread();
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI Thread();
35
36 MCAPI void init(int (*_fn)(::bx::Thread*, void*), void* _userData, uint _stackSize, char const* _name);
37
38 MCAPI bool isRunning() const;
39
40 MCAPI void setThreadName(char const* _name);
41
42 MCAPI void shutdown();
43 // NOLINTEND
44
45public:
46 // constructor thunks
47 // NOLINTBEGIN
48 MCAPI void* $ctor();
49 // NOLINTEND
50
51public:
52 // destructor thunk
53 // NOLINTBEGIN
54 MCAPI void $dtor();
55 // NOLINTEND
56
57public:
58 // vftables
59 // NOLINTBEGIN
60 MCNAPI static void** $vftable();
61 // NOLINTEND
62};
63
64} // namespace bx
Definition Thread.h:7
static MCAPI void ** $vftable()