OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

vt_wrap_pthread.h
1 /**
2 * VampirTrace
3 * http://www.tu-dresden.de/zih/vampirtrace
4 *
5 * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6 *
7 * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8 * Centre, Federal Republic of Germany
9 *
10 * See the file COPYING in the package base directory for details
11 **/
12
13 #ifndef _VT_WRAP_PTHREAD_H
14 #define _VT_WRAP_PTHREAD_H
15
16 #include <pthread.h>
17
18 __VT_EXTERN_DECL int VT_pthread_create__(pthread_t* thread, const pthread_attr_t* attr,
19 void *(*start_routine)(void*), void* arg);
20 __VT_EXTERN_DECL int VT_pthread_join__(pthread_t thread, void** value_ptr);
21 __VT_EXTERN_DECL int VT_pthread_exit__(void* value_ptr);
22 __VT_EXTERN_DECL int VT_pthread_once__(pthread_once_t* once_control,
23 void (*init_routine)(void));
24 __VT_EXTERN_DECL pthread_t VT_pthread_self__(void);
25 __VT_EXTERN_DECL int VT_pthread_equal__(pthread_t t1, pthread_t t2);
26 __VT_EXTERN_DECL int VT_pthread_detach__(pthread_t thread);
27 __VT_EXTERN_DECL int VT_pthread_key_create__(pthread_key_t* key,
28 void (*destructor)(void*));
29 __VT_EXTERN_DECL int VT_pthread_key_delete__(pthread_key_t key);
30 __VT_EXTERN_DECL void* VT_pthread_getspecific__(pthread_key_t key);
31 __VT_EXTERN_DECL int VT_pthread_setspecific__(pthread_key_t key, const void* value);
32 __VT_EXTERN_DECL int VT_pthread_cancel__(pthread_t thread);
33 __VT_EXTERN_DECL int VT_pthread_setcancelstate__(int state, int* oldstate);
34 __VT_EXTERN_DECL void VT_pthread_testcancel__(void);
35 __VT_EXTERN_DECL int VT_pthread_getschedparam__(pthread_t thread, int* policy,
36 struct sched_param* param);
37 __VT_EXTERN_DECL int VT_pthread_setschedparam__(pthread_t thread, int policy,
38 const struct sched_param* param);
39 __VT_EXTERN_DECL int VT_pthread_attr_init__(pthread_attr_t* attr);
40 __VT_EXTERN_DECL int VT_pthread_attr_destroy__(pthread_attr_t* attr);
41 __VT_EXTERN_DECL int VT_pthread_attr_setdetachstate__(pthread_attr_t* attr,
42 int detachstate);
43 __VT_EXTERN_DECL int VT_pthread_attr_getdetachstate__(const pthread_attr_t* attr,
44 int* detachstate);
45 __VT_EXTERN_DECL int VT_pthread_attr_getstacksize__(const pthread_attr_t* attr,
46 size_t* stacksize);
47 __VT_EXTERN_DECL int VT_pthread_attr_setstacksize__(pthread_attr_t* attr,
48 size_t stacksize);
49 __VT_EXTERN_DECL int VT_pthread_attr_getschedparam__(const pthread_attr_t* attr,
50 struct sched_param* param);
51 __VT_EXTERN_DECL int VT_pthread_attr_setschedparam__(pthread_attr_t* attr,
52 const struct sched_param* param);
53 __VT_EXTERN_DECL int VT_pthread_attr_getschedpolicy__(const pthread_attr_t* attr,
54 int* policy);
55 __VT_EXTERN_DECL int VT_pthread_attr_setschedpolicy__(pthread_attr_t* attr, int policy);
56 __VT_EXTERN_DECL int VT_pthread_attr_setinheritsched__(pthread_attr_t* attr,
57 int inheritsched);
58 __VT_EXTERN_DECL int VT_pthread_attr_getinheritsched__(const pthread_attr_t* attr,
59 int* inheritsched);
60 __VT_EXTERN_DECL int VT_pthread_attr_setscope__(pthread_attr_t* attr,
61 int contentionscope);
62 __VT_EXTERN_DECL int VT_pthread_attr_getscope__(const pthread_attr_t* attr,
63 int* contentionscope);
64 __VT_EXTERN_DECL int VT_pthread_mutex_init__(pthread_mutex_t* mutex,
65 const pthread_mutexattr_t* attr);
66 __VT_EXTERN_DECL int VT_pthread_mutex_destroy__(pthread_mutex_t* mutex);
67 __VT_EXTERN_DECL int VT_pthread_mutex_lock__(pthread_mutex_t* mutex);
68 __VT_EXTERN_DECL int VT_pthread_mutex_unlock__(pthread_mutex_t* mutex);
69 __VT_EXTERN_DECL int VT_pthread_mutex_trylock__(pthread_mutex_t* mutex);
70 __VT_EXTERN_DECL int VT_pthread_mutexattr_init__(pthread_mutexattr_t* attr);
71 __VT_EXTERN_DECL int VT_pthread_mutexattr_destroy__(pthread_mutexattr_t* attr);
72 __VT_EXTERN_DECL int VT_pthread_mutexattr_getpshared__(const pthread_mutexattr_t* attr,
73 int* pshared);
74 __VT_EXTERN_DECL int VT_pthread_mutexattr_setpshared__(pthread_mutexattr_t* attr,
75 int pshared);
76 __VT_EXTERN_DECL int VT_pthread_cond_init__(pthread_cond_t* cond,
77 const pthread_condattr_t* attr);
78 __VT_EXTERN_DECL int VT_pthread_cond_destroy__(pthread_cond_t* cond);
79 __VT_EXTERN_DECL int VT_pthread_cond_signal__(pthread_cond_t* cond);
80 __VT_EXTERN_DECL int VT_pthread_cond_broadcast__(pthread_cond_t* cond);
81 __VT_EXTERN_DECL int VT_pthread_cond_wait__(pthread_cond_t* cond,
82 pthread_mutex_t* mutex);
83 __VT_EXTERN_DECL int VT_pthread_cond_timedwait__(pthread_cond_t* cond,
84 pthread_mutex_t* mutex,
85 const struct timespec* abstime);
86 __VT_EXTERN_DECL int VT_pthread_condattr_init__(pthread_condattr_t* attr);
87 __VT_EXTERN_DECL int VT_pthread_condattr_destroy__(pthread_condattr_t* attr);
88 __VT_EXTERN_DECL int VT_pthread_condattr_getpshared__(const pthread_condattr_t* attr,
89 int* pshared);
90 __VT_EXTERN_DECL int VT_pthread_condattr_setpshared__(pthread_condattr_t* attr,
91 int pshared);
92
93 #define pthread_create VT_pthread_create__
94 #define pthread_join VT_pthread_join__
95 #define pthread_exit VT_pthread_exit__
96 #define pthread_once VT_pthread_once__
97 #define pthread_self VT_pthread_self__
98 #define pthread_equal VT_pthread_equal__
99 #define pthread_detach VT_pthread_detach__
100 #define pthread_key_create VT_pthread_key_create__
101 #define pthread_key_delete VT_pthread_key_delete__
102 #define pthread_getspecific VT_pthread_getspecific__
103 #define pthread_setspecific VT_pthread_setspecific__
104 #define pthread_cancel VT_pthread_cancel__
105 #define pthread_setcancelstate VT_pthread_setcancelstate__
106 #define pthread_testcancel VT_pthread_testcancel__
107 #define pthread_getschedparam VT_pthread_getschedparam__
108 #define pthread_setschedparam VT_pthread_setschedparam__
109 #define pthread_attr_init VT_pthread_attr_init__
110 #define pthread_attr_destroy VT_pthread_attr_destroy__
111 #define pthread_attr_setdetachstate VT_pthread_attr_setdetachstate__
112 #define pthread_attr_getdetachstate VT_pthread_attr_getdetachstate__
113 #define pthread_attr_getstacksize VT_pthread_attr_getstacksize__
114 #define pthread_attr_setstacksize VT_pthread_attr_setstacksize__
115 #define pthread_attr_getschedparam VT_pthread_attr_getschedparam__
116 #define pthread_attr_setschedparam VT_pthread_attr_setschedparam__
117 #define pthread_attr_getschedpolicy VT_pthread_attr_getschedpolicy__
118 #define pthread_attr_setschedpolicy VT_pthread_attr_setschedpolicy__
119 #define pthread_attr_setinheritsched VT_pthread_attr_setinheritsched__
120 #define pthread_attr_getinheritsched VT_pthread_attr_getinheritsched__
121 #define pthread_attr_setscope VT_pthread_attr_setscope__
122 #define pthread_attr_getscope VT_pthread_attr_getscope__
123 #define pthread_mutex_init VT_pthread_mutex_init__
124 #define pthread_mutex_destroy VT_pthread_mutex_destroy__
125 #define pthread_mutex_lock VT_pthread_mutex_lock__
126 #define pthread_mutex_unlock VT_pthread_mutex_unlock__
127 #define pthread_mutex_trylock VT_pthread_mutex_trylock__
128 #define pthread_mutexattr_init VT_pthread_mutexattr_init__
129 #define pthread_mutexattr_destroy VT_pthread_mutexattr_destroy__
130 #define pthread_mutexattr_getpshared VT_pthread_mutexattr_getpshared__
131 #define pthread_mutexattr_setpshared VT_pthread_mutexattr_setpshared__
132 #define pthread_cond_init VT_pthread_cond_init__
133 #define pthread_cond_destroy VT_pthread_cond_destroy__
134 #define pthread_cond_signal VT_pthread_cond_signal__
135 #define pthread_cond_broadcast VT_pthread_cond_broadcast__
136 #define pthread_cond_wait VT_pthread_cond_wait__
137 #define pthread_cond_timedwait VT_pthread_cond_timedwait__
138 #define pthread_condattr_init VT_pthread_condattr_init__
139 #define pthread_condattr_destroy VT_pthread_condattr_destroy__
140 #define pthread_condattr_getpshared VT_pthread_condattr_getpshared__
141 #define pthread_condattr_setpshared VT_pthread_condattr_setpshared__
142
143 #endif /* _VT_WRAP_PTHREAD_H */
timespec
Definition: ompi_time.h:160