--- parser3/src/include/pa_threads.h 2001/05/17 09:47:17 1.13 +++ parser3/src/include/pa_threads.h 2001/05/17 10:42:56 1.15 @@ -5,14 +5,13 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_threads.h,v 1.13 2001/05/17 09:47:17 parser Exp $ + $Id: pa_threads.h,v 1.15 2001/05/17 10:42:56 parser Exp $ */ #ifndef PA_THREADS_H #define PA_THREADS_H #include "pa_config_includes.h" - #include "pa_types.h" @@ -55,11 +54,12 @@ 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 */ +# define SYNCHRONIZED AutoSYNCHRONIZED autoSYNCHRONIZED +#else + // not MULTITHREAD-ed, do nothing +# define SYNCHRONIZED #endif