Parameter | Details |
---|---|
other | Takes ownership of other , other doesn't own the thread anymore |
func | Function to call in a seperate thread |
args | Arguments for func |
Some notes:
std::thread
objects can never represent the same thread.std::thread
object can be in a state where it doesn't represent any thread (i.e. after a move, after calling join
, etc.).