--- parser3/src/include/pa_threads.h 2001/11/05 11:46:26 1.20 +++ parser3/src/include/pa_threads.h 2002/08/01 11:41:16 1.25 @@ -1,18 +1,24 @@ /** @file Parser: mutex & helpers decls. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) - - $Id: pa_threads.h,v 1.20 2001/11/05 11:46:26 paf Exp $ + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_THREADS_H #define PA_THREADS_H +static const char* IDENT_THREADS_H="$Date: 2002/08/01 11:41:16 $"; + #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