ACE_Mutex::acquire problem
Posted
by O. Askari
on Stack Overflow
See other posts from Stack Overflow
or by O. Askari
Published on 2010-01-01T08:35:52Z
Indexed on
2010/04/01
2:33 UTC
Read the original article
Hit count: 356
c++
|ace-library
Hi,
I have a mutex in my class with the following definition:
ACE_Mutex m_specsMutex;
When i use the acquire() method that takes no parameters everything works just fine. But when i use it with a time value (as follows) it just immediately returns with -1 value. I'm sure that this mutex hasn't been acquired anywhere else so it shouldn't return -1.
m_specsMutex.acquire(ACE_OS::gettimeofday() + ACE_Time_Value(30))
Am i doing anything wrong?
© Stack Overflow or respective owner