ultimatepp/uppdev/CoreTopics/src.tpp/Thread$en-us.tpp

63 lines
No EOL
2.5 KiB
C++

topic "class Thread";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;*@(64)2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,2#27521748481378242620020725143825:desc]
[a83;*R6 $$3,0#31310162474203024125188417583966:caption]
[l288;i1121;b17;O9;~~~.1408;2 $$4,0#10431211400427159095818037425705:param]
[i448;a25;kKO9;*@(64)2 $$5,0#37138531426314131252341829483370:item]
[*+117 $$6,6#14700283458701402223321329925657:header]
[l416;2 $$7,7#55548704457842300043401641954952:nested`-desc]
[l288;i448;a25;kO9;*2 $$8,8#64691275497409617375831514634295:nested`-class]
[{_}%EN-US
[s1;K:`:`:Thread`:`:class:%- [@(0.0.255) class]_[@0 Thread]&]
[s2; Encapsulation of thread. &]
[s0; &]
[s5;K:`:`:Thread`:`:Run`(`:`:Callback`):%- [@(0.0.255) bool]_[@0 Run]([^`:`:Callback^ Callb
ack]_[@3 cb])&]
[s2; Starts a new thread.&]
[s0; &]
[s5;K:`:`:Thread`:`:Wait`(`):%- [@(0.0.255) int]_[@0 Wait]()&]
[s2; Waits for started thread to finish. (`"join`").&]
[s0; &]
[s5;K:`:`:Thread`:`:IsOpen`(`)const:%- [@(0.0.255) bool]_[@0 IsOpen]()_[@(0.0.255) const]&]
[s2; Thread represents a running thread.&]
[s0; &]
[s5;K:`:`:Thread`:`:Start`(`:`:Callback`):%- static [@(0.0.255) void]_[@0 Start]([^`:`:Callback^ C
allback]_[@3 cb])&]
[s2; Starts a thread and returns immediately (you cannot Wait for
the thread to finish in this case).&]
[s0; &]
[s5;K:`:`:Thread`:`:Sleep`(int`):%- static [@(0.0.255) void]_[@0 Sleep]([@(0.0.255) int]_[@3 m
s])&]
[s2; Sleep for a given number of milliseconds.&]
[s0; &]
[s5;K:`:`:Thread`:`:IsST`(`):%- static [@(0.0.255) bool]_[@0 IsST]()&]
[s2; True is no thread was started yet.&]
[s0; &]
[s5;K:`:`:Thread`:`:GetCount`(`):%- static [@(0.0.255) int]_[@0 GetCount]()&]
[s2; Number of running threads.&]
[s0; &]
[s5;K:`:`:Thread`:`:ShutdownThreads`(`):%- static [@(0.0.255) void]_[@0 ShutdownThreads](
)&]
[s2; Sets the `"Shutdown`" flag on.&]
[s0; &]
[s5;K:`:`:Thread`:`:IsShutdownThreads`(`):%- static [@(0.0.255) bool]_[@0 IsShutdownThrea
ds]()&]
[s2; True if ShutdownThreads was called.&]
[s0; &]
[s5;K:`:`:Thread`:`:`~`:`:Thread`(`):%- `~[@0 Thread]()&]
[s2; Destructor. Thread continues running (and it is impossible to
Wait for finish).&]
[s0; &]
[s0; &]
[s0; &]
[s1;K:`:`:Mutex`:`:class:%- [@(0.0.255) class]_[@0 Mutex]&]
[s2; &]
[s0; &]
[s5;K:`:`:Mutex`:`:Enter`(`):%- [@(0.0.255) void]_[@0 Enter]()&]
[s2; &]
[s0; &]
[s5;K:`:`:Mutex`:`:Leave`(`):%- [@(0.0.255) void]_[@0 Leave]()&]
[s2; &]
[s0; &]
[s0; ]