Thread attributes used internally for starting a thread.
More...
#include <Thread.h>
Thread attributes used internally for starting a thread.
◆ handle_type
◆ ESchedulePolicy
Thread schedule policies.
Enumerator |
---|
spScheduleOther | Scheduling behavior is determined by the operating system.
|
spScheduleFifo | Threads are scheduled in a first-in-first-out order within each priority.
|
spScheduleRoundRobin | Threads are scheduled in a round-robin fashion within each priority.
|
spScheduleBatch | |
spScheduleIdle | |
spScheduleResetOnFork | |
◆ Attributes() [1/3]
sf::Thread::Attributes::Attributes |
( |
| ) |
|
◆ Attributes() [2/3]
sf::Thread::Attributes::Attributes |
( |
const Attributes & |
| ) |
|
|
delete |
◆ Attributes() [3/3]
Initialize using the passed thread handle.
When the handle is '0' the current thread is used.
- See also
- setup()
- Exceptions
-
◆ ~Attributes()
sf::Thread::Attributes::~Attributes |
( |
| ) |
|
◆ getSchedulePolicy()
Gets the current set scheduling priority.
◆ getStackSize()
size_t sf::Thread::Attributes::getStackSize |
( |
| ) |
const |
Gets the stack size of the thread which initialized it.
◆ operator handle_type()
◆ operator=()
◆ setSchedulePolicy()
Sets scheduling priority for the to be started thread.
◆ setStackSize()
void sf::Thread::Attributes::setStackSize |
( |
size_t |
sz | ) |
|
Sets the stack size for a new thread.
The stack size retrieved using getCurrentStackSize() is an aligned value and can report less than is passed in this function.
◆ setup()
When the handle is '0' the current thread is used.
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: