Skip to content

Core.CountingSemaphore

29thnight edited this page Nov 28, 2025 · 1 revision

CountingSemaphore

간단 설명: 스핀-락 백오프 후 Win32 세마포어 대기를 사용하는 카운팅 세마포어.

메서드

메서드 설명
acquire() 스핀 후 감소. 0 이하이면 OS 세마포어 대기
release(count) 카운트 증가. 음수 대기자가 있으면 ReleaseSemaphore 호출

내부: m_count(atomic), HANDLE m_semaphore. 스핀 카운트 1024.

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally