77 template<
class start_t>
79 template<
class start_t>
81 jthread(jthread&&) =
default;
82 jthread(
const jthread&) =
default;
83 jthread& operator=(
const jthread&) =
default;
84 template<
class start_t>
86 static jthread start_new(start_t start) {
return start_new(thread_start {start});}
87 template<
class start_t>
88 static jthread start_new(start_t start,
const xtd::any_object& obj) {
return start_new(parameterized_thread_start {
start}, obj);}
92 using thread::auto_join;
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
Creates and controls an automatically rejoins on destruction thread, sets its priority,...
Definition jthread.hpp:31
static jthread start_new(const xtd::threading::thread_start &start)
Create and immedialtely start a xtd::threading::jthread with specified method.
static jthread start_new(const xtd::threading::parameterized_thread_start &start, const xtd::any_object &obj)
Create and immedialtely start a xtd::threading::jthread with specified method.
jthread(const xtd::threading::parameterized_thread_start &start)
Initializes a new instance of the xtd::threading::jthread class, specifying a delegate that allows an...
jthread(const xtd::threading::thread_start &start, int32 max_stack_size)
Initializes a new instance of the xtd::threading::jthread class, specifying the maximum stack size fo...
jthread(const xtd::threading::thread_start &start)
Initializes a new instance of the xtd::threading::jthread class.
jthread(const xtd::threading::parameterized_thread_start &start, int32 max_stack_size)
Initializes a new instance of the xtd::threading::jthread class, specifying a delegate that allows an...
Creates and controls a thread, sets its priority, and gets its status.
Definition thread.hpp:45
xtd::delegate< void(const xtd::any_object &obj)> parameterized_thread_start
Represents the method that executes on a xtd::threading::thread.
Definition parameterized_thread_start.hpp:29
xtd::delegate< void()> thread_start
Represents the method that executes on a xtd::threading::thread.
Definition thread_start.hpp:24
#define core_export_
Define shared library export.
Definition core_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ start
Starting of a logical operation.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::threading::thread class.