Fennel: /home/pub/open/dev/fennel/synch/SynchObj.h File Reference (original) (raw)

Definition at line 31 of file SynchObj.cpp.

References isMAXU().

Referenced by LogicalTxnLog::commitTxnWithGroup(), CacheImpl< PageT, VictimPolicyT >::findFreePage(), SegPageBackupRestoreDevice::getFreeScratchPage(), TimerThread::run(), GroupLock::waitFor(), and SXMutex::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 }