additional/synchronization/guid.cpp

Go to the documentation of this file.
00001 #include "guid.h"
00002 #include "semaphore.h"
00003 
00004 int GuidGenerator::lastGuid = 0;
00005 
00006 int GuidGenerator::GenerateNewGuid()
00007 {
00008         Semaphore semaphore( "GuidGenerator" );
00009         semaphore.Lock();
00010         lastGuid++;
00011         return lastGuid;
00012         semaphore.Unlock();
00013 }

Generated on Sat Apr 1 21:30:30 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO