Re: thread id



On Monday 18 September 2006 14:56, Mark Wilson wrote:
> Is there any way to obtain a thread id, or is there some other way to
> tell which thread I'm in using glibmm::thread?

Glib::Thread::create() returns a pointer to a Glib::Thread object which 
represents the running thread.  If you store it you can compare it later with 
the Glib::Thread pointer returned by Glib::Thread::self(), which is also a 
static member function.

Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]