Go to the source code of this file.
Classes | |
class | UnreferencedSynchStructs |
Functions | |
FENNEL_BEGIN_CPPFILE ("$Id: //open/dev/fennel/synch/SynchObj.cpp#9 $") | |
void | convertTimeout (uint iMilliseconds, boost::xtime &atv) |
FENNEL_END_CPPFILE ("$Id: //open/dev/fennel/synch/SynchObj.cpp#9 $") |
void convertTimeout | ( | uint | iMilliseconds, | |
boost::xtime & | atv | |||
) |
Definition at line 31 of file SynchObj.cpp.
References isMAXU().
Referenced by LogicalTxnLog::commitTxnWithGroup(), CacheImpl< PageT, VictimPolicyT >::findFreePage(), SegPageBackupRestoreDevice::getFreeScratchPage(), TimerThread::run(), SXMutex::waitFor(), and GroupLock::waitFor().
00032 { 00033 boost::xtime_get(&atv,boost::TIME_UTC); 00034 if (isMAXU(iMilliseconds)) { 00035 // FIXME: Solaris doesn't like bogus huge times like 00036 // ACE_Time_Value::max_time, so this uses NOW+10HRS. Instead, should 00037 // precalculate a real time much farther in the future and keep it 00038 // around as a singleton. 00039 atv.sec += 36000; 00040 } else if (iMilliseconds) { 00041 long sec = iMilliseconds / 1000; 00042 long nsec = (iMilliseconds%1000)*1000000; 00043 atv.sec += sec; 00044 atv.nsec += nsec; 00045 } 00046 }
FENNEL_BEGIN_CPPFILE | ( | "$Id: //open/dev/fennel/synch/SynchObj.cpp#9 $" | ) |
FENNEL_END_CPPFILE | ( | "$Id: //open/dev/fennel/synch/SynchObj.cpp#9 $" | ) |