xtd 0.2.0
Loading...
Searching...
No Matches

◆ jthread() [1/4]

xtd::threading::jthread::jthread ( const xtd::threading::parameterized_thread_start start)
explicit

Initializes a new instance of the xtd::threading::jthread class, specifying a delegate that allows an object to be passed to the thread when the thread is started.

Parameters
startA delegate that represents the methods to be invoked when this thread begins executing.
Exceptions
xtd::argument_exceptionThe start parameter is empty.
Remarks
A thread does not begin executing when it is created. To schedule the thread for execution, call the xtd::threading::jthread::start method. To pass a data object to the thread, use the xtd::threading::jthread::start(std::any) method overload.