diff options
author | Maria Matejka <mq@ucw.cz> | 2021-02-04 15:08:52 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-11-22 19:05:43 +0100 |
commit | b5061659d3cc011118024861c2f048e67affbd39 (patch) | |
tree | 6e31927baf828e11eec0876a990db6b4bda5ac5a /sysdep/unix/log.c | |
parent | a845651bc50b75b2be41b4427e04857ce3c106a6 (diff) |
POSIX threads and thread-local storage is needed for concurrent execution
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r-- | sysdep/unix/log.c | 11 |
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> |