pthread_tools.h

Go to the documentation of this file.
00001 /* 
00002  * Copyright (C) 2005 Abel Bennett.
00003  *
00004  * This is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with the GNU C Library; if not, write to the Free
00016  * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017  * 02111-1307 USA.
00018  */
00019 
00036 #ifndef _PTHREAD_TOOLS_
00037 #define _PTHREAD_TOOLS_
00038 
00039 
00040 #include <pthread.h>
00041 
00042 
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046 
00047 
00051 #define PTHREAD_CTF_MAJOR 0
00052 
00056 #define PTHREAD_CTF_MINOR 1
00057 
00061 #define PTHREAD_CTF_MICRO 0
00062 
00063 
00071 extern int pthread_get_nproc(int * number);
00072 
00082 extern int pthread_get_name(const pthread_t tid, char * buf, const size_t len);
00083 
00092 extern int pthread_version(char * buf, const size_t len);
00093 
00102 extern int pthread_ctf_version(char * buf, const size_t len);
00103 
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107 
00108 #endif

Generated on Tue Apr 24 20:01:36 2007 for libctf by  doxygen 1.5.1