Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++20 inizialize a thread

void Foo::start_thread(){
    m_thread = std::thread(&Foo::threaded_method, this);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inizialize #thread
ADD COMMENT
Topic
Name
7+5 =