Boost logo

Boost Users :

Subject: [Boost-users] [Threads] Test for running thread
From: Krzysiek (float80_at_[hidden])
Date: 2009-07-10 06:04:39


Hi,

I use following code to test running thread.
bool isRunning = !thread.timed_join (
   boost::posix_time::milliseconds ( 0 ) );
Is it safe and portable?

Thanks,
Krzysiek


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