--- parser3/src/include/pa_threads.h 2001/05/17 10:22:24 1.14 +++ parser3/src/include/pa_threads.h 2001/09/26 10:32:25 1.17 @@ -2,10 +2,9 @@ Parser: mutex & helpers decls. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_threads.h,v 1.14 2001/05/17 10:22:24 parser Exp $ + $Id: pa_threads.h,v 1.17 2001/09/26 10:32:25 parser Exp $ */ #ifndef PA_THREADS_H @@ -14,9 +13,6 @@ #include "pa_config_includes.h" #include "pa_types.h" - -#ifdef MULTITHREAD - class AutoSYNCHRONIZED; /// simple semaphore object @@ -54,12 +50,8 @@ public: @endverbatim WARNING: don't use THROW or PTHROW with such thread safety mechanizm - - longjump would leave global_mutex acquired, which is wrong! + longjmp would leave global_mutex acquired, which is wrong! */ -# define SYNCHRONIZED AutoSYNCHRONIZED autoSYNCHRONIZED() -#else // not MULTITHREAD-ed -# define SYNCHRONIZED /* do nothing */ -#endif - +#define SYNCHRONIZED AutoSYNCHRONIZED autoSYNCHRONIZED #endif