#include <Util.h>
Collaboration diagram for UniqueID:
Public Member Functions | |
UniqueID () | |
int | getID () |
Definition at line 176 of file Util.h.
UniqueID::UniqueID | ( | ) | [inline] |
Definition at line 181 of file Util.h.
References Mutex::init().
00181 { startID = 1; mutex.init(); }
Here is the call graph for this function:
int UniqueID::getID | ( | ) | [inline] |
Definition at line 182 of file Util.h.
References Mutex::getLock(), and Mutex::releaseLock().
Referenced by SqlLogStatement::prepare().
00183 { 00184 //TODO::change mutex to atomic increment instruction 00185 if (mutex.getLock(-1, false) != 0) return 0; 00186 startID++; 00187 mutex.releaseLock(-1, false); 00188 return startID; 00189 }
Here is the call graph for this function:
Here is the caller graph for this function: