![]() |
1.5.1 (revision 4026)
|
Pthread locks for OTF2. More...
Go to the source code of this file.
Data Structures | |
struct | OTF2_Lock |
The OpenMP locking object type. More... | |
struct | OTF2_Pthread_UserData |
User data structure, which will be used by the Pthread locks. More... | |
Functions | |
static OTF2_ErrorCode | OTF2_Pthread_Archive_SetLockingCallbacks (OTF2_Archive *archive, const pthread_mutexattr_t *mutexAttribute) |
Register callbacks to use Pthread mutexes for a OTF2 archive. | |
static OTF2_ErrorCode | OTF2_Pthread_Reader_SetLockingCallbacks (OTF2_Reader *reader, const pthread_mutexattr_t *mutexAttribute) |
Register callbacks to use Pthread mutexes for a OTF2 reader. |
Pthread locks for OTF2.
static OTF2_ErrorCode OTF2_Pthread_Archive_SetLockingCallbacks | ( | OTF2_Archive * | archive, |
const pthread_mutexattr_t * | mutexAttribute | ||
) | [static] |
Register callbacks to use Pthread mutexes for a OTF2 archive.
archive | The archive handle. |
mutexAttribute | A possible pthread_mutexattr_t which will e used in all pthread_mutex_init calls. A corresponding pthread_mutexattr_destroy call is done when the archive will be closed. |
static OTF2_ErrorCode OTF2_Pthread_Reader_SetLockingCallbacks | ( | OTF2_Reader * | reader, |
const pthread_mutexattr_t * | mutexAttribute | ||
) | [static] |
Register callbacks to use Pthread mutexes for a OTF2 reader.
reader | The reader handle. |
mutexAttribute | A possible pthread_mutexattr_t which will e used in all pthread_mutex_init calls. A corresponding pthread_mutexattr_destroy call is done when the reader will be closed. |