완료 포트를 사용하여 다른 스레드에서 정보를 얻으려면IOCP에 관한 질문
어떻게 프로그램 구조를 디자인 할 수 있습니까?
전역 함수를 사용하려면 어떻게 뮤텍스를 설정할 수 있습니까?
Main(){
for i in range NumOfThreads{
CreateIoCompletionPort()
CreatThread(ThreadFun)
}
}
ThreadFun(){
While(1){
GetQueuedCompletionStatus(); // wait for completion of an IO
Process What ever has completed();
Start another file operation();
}
}