--- parser3/src/include/pa_threads.h 2001/10/31 11:23:38 1.19 +++ parser3/src/include/pa_threads.h 2012/03/16 09:24:11 1.31 @@ -1,18 +1,24 @@ /** @file 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.19 2001/10/31 11:23:38 paf Exp $ + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_THREADS_H #define PA_THREADS_H +#define IDENT_PA_THREADS_H "$Id: pa_threads.h,v 1.31 2012/03/16 09:24:11 moko Exp $" + #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