강의

멘토링

커뮤니티

Inflearn Community Q&A

co22oc5076's profile image
co22oc5076

asked

[MMORPG Game Development with C++ and Unreal Series] Part 4: Game Server

Condition Variable

wait이 끝나면 어떻게 되나요?

Written on

·

466

0

안녕하세요

queue가 비어있어서 잡았던 lock을 풀고 대기하다가 notify_one함수가 알려주면 다시 wait함수부터 실행이 되는건가요? 만약 그렇다면 다른 Consumer 스레드(있다면)와도 wait함수를 통해 lock을 잡으려고 race를 할 텐데 그럼 unique_lock 선언을 while문 밖에서 해줘도 상관이 없을까요?

networkwindows-serverMMORPG

Answer

This question is waiting for answers
Be the first to answer!
co22oc5076's profile image
co22oc5076

asked

Ask a question