Boost logo

Boost Users :

From: Goroll, Torsten (Torsten.Goroll_at_[hidden])
Date: 2007-04-03 08:15:28


Hi,

I'm looking for a way, to identify a boost::thread from inside the thread. The background is, that I want to log into a global logger, which has to know from which thread the message was sent.

I have thought at using the pointer of the class as an identifier, but that won't work if two threads are from the same class. Maybe it is possible to save a pointer to the member methods???

Kind Regards
Torsten



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