Lines Matching refs:maxCount
146 WRes Semaphore_Create(CSemaphore *p, UInt32 initCount, UInt32 maxCount)
148 // negative ((LONG)maxCount) is not supported in WIN32::CreateSemaphore()
149 *p = CreateSemaphore(NULL, (LONG)initCount, (LONG)maxCount, NULL);
153 WRes Semaphore_OptCreateInit(CSemaphore *p, UInt32 initCount, UInt32 maxCount)
161 return Semaphore_Create(p, initCount, maxCount);
418 WRes Semaphore_Create(CSemaphore *p, UInt32 initCount, UInt32 maxCount)
420 if (initCount > maxCount || maxCount < 1)
425 p->_maxCount = maxCount;
431 WRes Semaphore_OptCreateInit(CSemaphore *p, UInt32 initCount, UInt32 maxCount)
440 if (initCount > maxCount || maxCount < 1)
444 p->_maxCount = maxCount;
447 return Semaphore_Create(p, initCount, maxCount);