Boost Users :
From: ycc (ycc_at_[hidden])
Date: 2005-08-21 20:28:48
I am using boost.thread in Windows with VC6, it's quite handy and useful.
I found it's better if the library can add 2 additional methods.
One is the
typedef platform_dependent thread_id_type;
thread_id_type id() const ;
sometimes I want to know what thread is really in the log file.
so I can write this:
std::cout << thread().id() << std::endl;
another one is a way to return the raw thread_handle.
typedef platform_dependent thread_handle
thread_handle handle() const ;
by this, I can suspend, terminate the thread in Windows, or in Posix
platform using #ifdef.
Is this doable? Thanks.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net