--- parser3/src/main/pa_threads.C 2020/12/15 17:10:37 1.7 +++ parser3/src/main/pa_threads.C 2023/09/26 20:49:10 1.9 @@ -1,13 +1,13 @@ /** @file Parser: simple Mutex realization class. - Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #include "pa_threads.h" -volatile const char * IDENT_PA_THREADS_C="$Id: pa_threads.C,v 1.7 2020/12/15 17:10:37 moko Exp $" IDENT_PA_THREADS_H; +volatile const char * IDENT_PA_THREADS_C="$Id: pa_threads.C,v 1.9 2023/09/26 20:49:10 moko Exp $" IDENT_PA_THREADS_H; Mutex global_mutex; @@ -44,7 +44,7 @@ uint pa_get_thread_id() { #ifdef HAVE_GETTID return syscall(__NR_gettid); #else - return 1; + return getpid(); #endif }