
2 Oct
2003
2 Oct
'03
3:26 a.m.
Hi there, still a newbie question for you guys...
I changed a bit the sample example from thread.cpp :
here's the new code i'm trying:
-----------------
boost::mutex io_mutex; // The iostreams are not guaranteed to be
thread-safe!
class FakeClass
{
public:
FakeClass(int NewID):ID(NewID)
{
boost::mutex::scoped_lock scoped_lock(io_mutex);
std::cout<<"FakeClass #"<