 	}
 	WaitForSingleObject(*semLock, INFINITE);
 #else
-	sem_t* semLock = sem_open("AliceHLTTPCCAGPUTrackerInitLock", O_CREAT);
+	sem_t* semLock = sem_open(SemLockName, O_CREAT, 0x01B6, 1);
 	if (semLock == SEM_FAILED)
 	{
 		HLTError("Error creating GPUInit Semaphore");

#else
	sem_t* pSem = (sem_t*) sem;
	sem_post(pSem);
	sem_unlink("AliceHLTTPCCAGPUTrackerInitLock");
#endif
}



bool AliHLTTPCCAGPUTracker::fgGPUUsed = false;

#define SemLockName "AliceHLTTPCCAGPUTrackerInitLockSem"

void AliHLTTPCCAGPUTracker::ReleaseGlobalLock(void* sem)
{
#ifdef R__WIN32
