--- parser3/src/include/pa_os.h 2007/05/24 10:32:42 1.7 +++ parser3/src/include/pa_os.h 2023/09/26 20:49:07 1.13 @@ -1,19 +1,21 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2005 ArtLebedev Group (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 */ #ifndef PA_OS_H #define PA_OS_H -static const char * const IDENT_OS_H="$Date: 2007/05/24 10:32:42 $"; +#define IDENT_PA_OS_H "$Id: pa_os.h,v 1.13 2023/09/26 20:49:07 moko Exp $" #define PA_LOCK_ATTEMPTS 20 #define PA_LOCK_WAIT_TIMEOUT_SECS 0 #define PA_LOCK_WAIT_TIMEOUT_USECS 500000 +extern unsigned int pa_lock_attempts; + // 'blocking' mean we will wait till other process release lock // but we'll make PA_LOCK_ATTEMPTS attempts with PA_LOCK_WAIT_TIMEOUT secs delaus between attempts // 'nonblocking' mean we will make only 1 attempt without waiting