Do Windows support the API to set the cancellation and non-cancellation mode as we do in LINUX with following functions. pthread_setcancelstate pthread_setcanceltype
Asked
Active
Viewed 111 times
0
-
1Related: http://stackoverflow.com/questions/1988275/windows-api-similar-to-pthread-cancel – Frédéric Hamidi Mar 16 '13 at 07:36
1 Answers
1
download pthread_w32
and add the lib file path in your project or use
#pragma comment(lib, "pthreadVC2.lib")
then copy the pthread*.dll to your system path,
and in your code, you can write
#include <pthread.h>

Scy
- 488
- 3
- 11