10x, sorry for my english
I am not sure what this delay function does.
this function from ${BOOSTDIR}/libs/thread/test/util.inl
scoped_time_lock takes boost::xtime or bool. 4 here is interpreted as "true", not as time.
oops.
okey, the new version of my cool program (how i can see event of timeout?) are
///------- COOLPRG
timed_mutex mut;
#define TIMEOUT 1
#define AUTHTIME 4
void
timeout ()
{
timed_mutex::scoped_timed_lock lk (mut, delay(TIMEOUT));
if ( lk.locked ())
cout << "how i can see event of timeout?" << endl;
else
cout << "okey!" << endl;
}
std::auto_ptr