00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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