
Ah, new in 1.35! Awesome, thanks. Johan RĂ¥de wrote:
Yang Zhang wrote:
Hi, I like using boost threads, but I'm currently working on a project where I need to access the private handle to the underlying system thread (in the cases I'm concerned about, the pthread_t). This is so that I can take advantage of platform-specific functionality, such as setting CPU affinity and (more generally) calling into other libraries that expect a pthread_t. Is there any way to do get this handle?
Thanks!
class thread { public: ... typedef platform-specific-type native_handle_type; native_handle_type native_handle(); ... };
I haven't used it myself though.
--Johan
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users