강의

멘토링

커뮤니티

Inflearn Community Q&A

c112862694's profile image
c112862694

asked

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

CPU pipeline

volatile질문

Resolved

Written on

·

250

1

2분55초에 나오는 bool 변수 ready를 volatile로 둔 이유가 컴파일러의 최적화로 인해 메인함수안의 ready = false 선언 하고 쓰레드 생성 후 ready = true를 무시하고 바로 ready에 true에 넣는것을 막기 위함인걸까요?

networkwindows-serverMMORPG

Answer 1

2

Rookiss님의 프로필 이미지
Rookiss
Instructor

네 그렇습니다

c112862694's profile image
c112862694

asked

Ask a question