summaryrefslogtreecommitdiff
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-02-04 15:08:52 +0100
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:43 +0100
commitb5061659d3cc011118024861c2f048e67affbd39 (patch)
tree6e31927baf828e11eec0876a990db6b4bda5ac5a /sysdep/unix
parenta845651bc50b75b2be41b4427e04857ce3c106a6 (diff)
POSIX threads and thread-local storage is needed for concurrent execution
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/log.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index 4e9df069..a23903b7 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -36,8 +36,6 @@ static list *current_log_list;
static char *current_syslog_name; /* NULL -> syslog closed */
-#ifdef USE_PTHREADS
-
#include <pthread.h>
static pthread_mutex_t log_mutex;
@@ -48,15 +46,6 @@ static pthread_t main_thread;
void main_thread_init(void) { main_thread = pthread_self(); }
static int main_thread_self(void) { return pthread_equal(pthread_self(), main_thread); }
-#else
-
-static inline void log_lock(void) { }
-static inline void log_unlock(void) { }
-void main_thread_init(void) { }
-static int main_thread_self(void) { return 1; }
-
-#endif
-
#ifdef HAVE_SYSLOG_H
#include <sys/syslog.h>