I'm not sure if this is something that needs to be implemented in the language or not, but is there a way to obtain perhaps a handle or pointer to a thread that is currently running with boost::threads?
This is a discussion on Can boost threads find a handle to current running thread? within the Tech Board forums, part of the Community Boards category; I'm not sure if this is something that needs to be implemented in the language or not, but is there ...
I'm not sure if this is something that needs to be implemented in the language or not, but is there a way to obtain perhaps a handle or pointer to a thread that is currently running with boost::threads?
boost::thread is supposed to be portable, it will most likely use a platform specific API, but the whole idea of the library is to avoid the need for an API call or a platform specific feature like a handle or pointer.
If you need to use a handle, you might as well forgo the use of boost::thread and use an API