LLVM thread following std::thread interface with added constructor to specify stack size.
Synopsis
Declared in <llvm/Support/thread.h>
class thread;
Type Aliases
Name |
Description |
Platform‐specific thread identifier type. |
|
Native OS handle type for the underlying thread. |
|
Function pointer type for the platform thread entry routine. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroys the thread handle; calls std::terminate if still joinable. |
Move‐assigns from |
|
Separates the thread of execution from this object. |
|
Returns the id of the thread represented by this object. |
|
Blocks until the thread of execution finishes. |
|
Returns true if this object represents an active, joinable thread. |
|
Returns the native handle for this thread. |
|
Exchanges the underlying thread handles of this object and |
Static Member Functions
Name |
Description |
Platform thread entry that runs the callable in |
|
Returns an estimate of concurrent threads supported by the hardware. |
Static Data Members
Name |
Description |
Default stack size in bytes for new threads; nullopt means platform default. |
Created with MrDocs