|
OSSIA
Open Scenario System for Interactive Application
|
A std::thread with a 16 MB stack, like the main thread, instead of the platform default for secondary threads (512 kB on macOS). Windows and WebAssembly use std::thread with its default stack size.
Public Types | |
| using | native_handle_type = pthread_t |
Public Member Functions | |
|
template<typename F , typename... Args> requires (!std::is_same_v<std::remove_cvref_t<F>, thread>) | |
| thread (F &&f, Args &&... args) | |
| As std::thread: f and args are copied (or moved) to the new thread. | |
| thread (thread &&other) noexcept | |
| thread & | operator= (thread &&other) noexcept |
| thread (const thread &)=delete | |
| thread & | operator= (const thread &)=delete |
| bool | joinable () const noexcept |
| void | join () |
| void | detach () |
| native_handle_type | native_handle () noexcept |
Static Public Attributes | |
| static constexpr std::size_t | stack_size = 16 * 1024 * 1024 |