#include <camnet.h>
Public Member Functions | |
BOOL | operator() (const CacheEntry &first, const CacheEntry &second) const |
Definition at line 450 of file camnet.h.
|
Definition at line 452 of file camnet.h. 00453 { 00454 INT32 nFirstEntryPriority = first.GetPriority(), nSecondEntryPriority = second.GetPriority(); 00455 if (nFirstEntryPriority > nSecondEntryPriority) 00456 return TRUE; 00457 else if (nFirstEntryPriority < nSecondEntryPriority) 00458 return FALSE; 00459 else // entries are of the same priority, use time stamps 00460 return first.m_FileStat.st_ctime >= second.m_FileStat.st_ctime ? TRUE : FALSE; 00461 }
|