0

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

CrazyC
  • 1,790
  • 6
  • 35
  • 58

1 Answers1

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
  • 478
  • 2
  • 11