--- parser3/src/include/pa_threads.h 2001/10/29 08:23:49 1.18 +++ parser3/src/include/pa_threads.h 2002/02/08 08:30:14 1.23 @@ -1,10 +1,10 @@ /** @file Parser: mutex & helpers decls. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_threads.h,v 1.18 2001/10/29 08:23:49 paf Exp $ + $Id: pa_threads.h,v 1.23 2002/02/08 08:30:14 paf Exp $ */ #ifndef PA_THREADS_H @@ -13,6 +13,12 @@ #include "pa_config_includes.h" #include "pa_types.h" +/// thread ID type +typedef unsigned int pa_thread_t; + +/// get caller thread ID +pa_thread_t pa_get_thread_id(); + class AutoSYNCHRONIZED; /// simple semaphore object @@ -28,6 +34,7 @@ private: // for AutoSYNCHRONIZED void release(); }; +extern const bool parser_multithreaded; extern Mutex global_mutex; /**