X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=compat%2Fw32pthreads.h;h=6405e72b64f70b15e284c19734c26361846e95b9;hb=14fa0a4efbc989619860ed8ec0fd33dcdae558b0;hp=7df33b7da4302eb25642d19fee9c2dd99bf2620c;hpb=fc6fde22c34ac9ae39f16494238140ba40456efd;p=ffmpeg diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index 7df33b7da43..6405e72b64f 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -63,6 +63,9 @@ typedef CONDITION_VARIABLE pthread_cond_t; #define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0) #define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE) +#define PTHREAD_CANCEL_ENABLE 1 +#define PTHREAD_CANCEL_DISABLE 0 + static av_unused unsigned __stdcall attribute_align_arg win32thread_worker(void *arg) { pthread_t *h = (pthread_t*)arg; @@ -180,4 +183,9 @@ static inline int pthread_cond_signal(pthread_cond_t *cond) return 0; } +static inline int pthread_setcancelstate(int state, int *oldstate) +{ + return 0; +} + #endif /* COMPAT_W32PTHREADS_H */