일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Replication
- 유니티
- rpc
- photon fusion2
- gameplay effect
- dirty cow
- CTF
- gravity direction
- animation
- map design
- listen server
- gas
- Multiplay
- Unreal Engine
- 언리얼 엔진
- os
- ability task
- MAC
- stride
- Aegis
- 게임 개발
- 언리얼엔진
- gameplay tag
- 게임개발
- unity
- local prediction
- attribute
- nanite
- gameplay ability system
- UI
Archives
- Today
- Total
목록semaphore (1)
Replicated
Semaphore (세마포)
락을 위해서도 조건변수를 위해서도 사용 가능 sem_init(semaphore, p_shared, initial_value) semaphre : 사용할 세마포 p_shared : 프로세스 간 쉐어, 안하면 0으로 설정하면 됨 initial_value : 이걸 어떻게 사용할 건지에 따라 바이너리 세마포, 카운팅 세마포. 사용법이 다름 int sem_wait(sem_t *s) // 세마포의 값을 1 내리고 음수면 웨이트 int sem_post(sem_t *s) // 세마포의 값을 1 올리고 대기 중인 스레드 하나 꺠우기 두 함수를 사용해서 세마포 사용 sem_t m; sem_init(&m, 0, 1); sem_wait(&m); // critical section sem_post(&m); 락으로 사용하는 경우..
운영체제
2024. 4. 18. 23:02