2013-03-16 5 views
0

Windows는 다음과 같은 기능으로 LINUX에서와 마찬가지로 취소 및 취소 취소 모드를 설정하는 API를 지원합니까? pthread_setcancelstate를 pthread_setcanceltype를스레드의 Windows 비 취소 모드

+1

관련 항목 : http://stackoverflow.com/questions/1988275/windows-api-similar-to-pthread-cancel –

답변

1

다운로드 pthread_w32

다음 .DLL 시스템 경로에 *는 pthread를 복사 프로젝트에서 lib에 파일 경로를 추가하거나

#pragma comment(lib, "pthreadVC2.lib") 

를 사용

와의 귀하의 코드는 쓸 수 있습니다

#include <pthread.h> 
관련 문제