|
VEX V5 C++ API
|
Functions | |
| int32_t | get_id () |
| Gets the ID of the thread. More... | |
| void | yield () |
| Suspends the current thread. More... | |
| void | sleep_for (uint32_t time_ms) |
| sleep_for More... | |
| void | sleep_until (uint32_t time) |
| sleep_until More... | |
| void | setPriority (int32_t priority) |
| Sets the priority of the current thread. More... | |
| int32_t | priority () |
| Gets the priority of the current thread. More... | |
| int32_t vex::this_thread::get_id | ( | ) |
Gets the ID of the thread.
| void vex::this_thread::yield | ( | ) |
Suspends the current thread.
| void vex::this_thread::sleep_for | ( | uint32_t | time_ms | ) |
sleep_for
Suspends the current thread until the time is expired in milliseconds.
| time_ms | The amount of time for the thread to sleep. |
| void vex::this_thread::sleep_until | ( | uint32_t | time | ) |
sleep_until
Sleeps until the system timer reaches the time specified in the parameter.
| time | The amount of time for the thread to sleep. |
| void vex::this_thread::setPriority | ( | int32_t | priority | ) |
Sets the priority of the current thread.
| priority | The priority of the thread to be set to. |
| int32_t vex::this_thread::priority | ( | ) |
Gets the priority of the current thread.
1.8.15