pthread_tools.h File Reference

various tools for libctf More...

#include <pthread.h>

Go to the source code of this file.

Defines

#define PTHREAD_CTF_MAJOR   0
 ctf major version number
#define PTHREAD_CTF_MINOR   1
 ctf minor version number
#define PTHREAD_CTF_MICRO   0
 ctf micro version number

Functions

int pthread_get_nproc (int *number)
 returns the number of on-line processors
int pthread_get_name (const pthread_t tid, char *buf, const size_t len)
 returns a string representing the pthread_t
int pthread_version (char *buf, const size_t len)
 returns the version of pthreads library
int pthread_ctf_version (char *buf, const size_t len)
 returns the version of ctf library


Detailed Description

various tools for libctf


Function Documentation

int pthread_ctf_version ( char *  buf,
const size_t  len 
)

returns the version of ctf library

Parameters:
buf pointer to a character array
len maximum length for buffer
Returns:
0 is returned on success
non-zero error code is returned on failure

int pthread_get_name ( const pthread_t  tid,
char *  buf,
const size_t  len 
)

returns a string representing the pthread_t

Parameters:
tid pthread_t ID [input]
buf pointer to a character array
len maximum length for buffer
Returns:
0 is returned on success
non-zero error code is returned on failure

int pthread_get_nproc ( int *  number  ) 

returns the number of on-line processors

Parameters:
number number of processors
Returns:
0 is returned on success
non-zero error code is returned on failure

int pthread_version ( char *  buf,
const size_t  len 
)

returns the version of pthreads library

Parameters:
buf pointer to a character array
len maximum length for buffer
Returns:
0 is returned on success
non-zero error code is returned on failure


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