What does boost::thread do if it fails to create the thread?
The winAPI returns a NULL (I guess posix does something similar) but as thread is an object how do I test to see if the thread was created?
What does boost::thread do if it fails to create the thread?
The winAPI returns a NULL (I guess posix does something similar) but as thread is an object how do I test to see if the thread was created?
According to the API, it throws a boost::thread_resource_error if the thread creation fails.
I guess you cannot create an invalid boost::thread object: if something goes wrong, the constructor throws thus preventing the object creation.