summaryrefslogtreecommitdiff
path: root/Build/source/extra/xz/src/common/mythread.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/extra/xz/src/common/mythread.h')
-rw-r--r--Build/source/extra/xz/src/common/mythread.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/Build/source/extra/xz/src/common/mythread.h b/Build/source/extra/xz/src/common/mythread.h
deleted file mode 100644
index 476c2fc9e10..00000000000
--- a/Build/source/extra/xz/src/common/mythread.h
+++ /dev/null
@@ -1,42 +0,0 @@
-///////////////////////////////////////////////////////////////////////////////
-//
-/// \file mythread.h
-/// \brief Wrappers for threads
-//
-// Author: Lasse Collin
-//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
-///////////////////////////////////////////////////////////////////////////////
-
-#include "sysdefs.h"
-
-
-#ifdef HAVE_PTHREAD
-# include <pthread.h>
-
-# define mythread_once(func) \
- do { \
- static pthread_once_t once_ = PTHREAD_ONCE_INIT; \
- pthread_once(&once_, &func); \
- } while (0)
-
-# define mythread_sigmask(how, set, oset) \
- pthread_sigmask(how, set, oset)
-
-#else
-
-# define mythread_once(func) \
- do { \
- static bool once_ = false; \
- if (!once_) { \
- func(); \
- once_ = true; \
- } \
- } while (0)
-
-# define mythread_sigmask(how, set, oset) \
- sigprocmask(how, set, oset)
-
-#endif