#ifndef THREADING_H_938743
#define THREADING_H_938743
#include "debug.h"
#if defined (__cplusplus)
extern "C" {
#endif
#if defined(ZSTD_MULTITHREAD) && defined(_WIN32)
#ifdef WINVER
# undef WINVER
#endif
#define WINVER …
#ifdef _WIN32_WINNT
# undef _WIN32_WINNT
#endif
#define _WIN32_WINNT …
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#undef ERROR
#include <windows.h>
#undef ERROR
#define ERROR …
#define ZSTD_pthread_mutex_t …
#define ZSTD_pthread_mutex_init …
#define ZSTD_pthread_mutex_destroy …
#define ZSTD_pthread_mutex_lock …
#define ZSTD_pthread_mutex_unlock …
#define ZSTD_pthread_cond_t …
#define ZSTD_pthread_cond_init …
#define ZSTD_pthread_cond_destroy …
#define ZSTD_pthread_cond_wait …
#define ZSTD_pthread_cond_signal …
#define ZSTD_pthread_cond_broadcast …
typedef HANDLE ZSTD_pthread_t;
int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused,
void* (*start_routine) (void*), void* arg);
int ZSTD_pthread_join(ZSTD_pthread_t thread);
#elif defined(ZSTD_MULTITHREAD)
# include <pthread.h>
#if DEBUGLEVEL < 1
#define ZSTD_pthread_mutex_t …
#define ZSTD_pthread_mutex_init …
#define ZSTD_pthread_mutex_destroy …
#define ZSTD_pthread_mutex_lock …
#define ZSTD_pthread_mutex_unlock …
#define ZSTD_pthread_cond_t …
#define ZSTD_pthread_cond_init …
#define ZSTD_pthread_cond_destroy …
#define ZSTD_pthread_cond_wait …
#define ZSTD_pthread_cond_signal …
#define ZSTD_pthread_cond_broadcast …
#define ZSTD_pthread_t …
#define ZSTD_pthread_create …
#define ZSTD_pthread_join …
#else
#define ZSTD_pthread_mutex_t …
int ZSTD_pthread_mutex_init(ZSTD_pthread_mutex_t* mutex, pthread_mutexattr_t const* attr);
int ZSTD_pthread_mutex_destroy(ZSTD_pthread_mutex_t* mutex);
#define ZSTD_pthread_mutex_lock …
#define ZSTD_pthread_mutex_unlock …
#define ZSTD_pthread_cond_t …
int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* cond, pthread_condattr_t const* attr);
int ZSTD_pthread_cond_destroy(ZSTD_pthread_cond_t* cond);
#define ZSTD_pthread_cond_wait …
#define ZSTD_pthread_cond_signal …
#define ZSTD_pthread_cond_broadcast …
#define ZSTD_pthread_t …
#define ZSTD_pthread_create …
#define ZSTD_pthread_join …
#endif
#else
ZSTD_pthread_mutex_t;
#define ZSTD_pthread_mutex_init(a, b) …
#define ZSTD_pthread_mutex_destroy(a) …
#define ZSTD_pthread_mutex_lock(a) …
#define ZSTD_pthread_mutex_unlock(a) …
ZSTD_pthread_cond_t;
#define ZSTD_pthread_cond_init(a, b) …
#define ZSTD_pthread_cond_destroy(a) …
#define ZSTD_pthread_cond_wait(a, b) …
#define ZSTD_pthread_cond_signal(a) …
#define ZSTD_pthread_cond_broadcast(a) …
#endif
#if defined (__cplusplus)
}
#endif
#endif