#include <pthread.h>#include <pisystem.h>#include <pithread-if.h>Include dependency graph for xthread.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | CREATE_ATT extern PI_API |
| #define | GENERAL_ATT static PI_INLINE PI_API |
Typedefs | |
| typedef pthread_t | pithread_t |
| The thread type. More... | |
| typedef pthread_attr_t | pithread_attr_t |
| The thread attribute type. More... | |
| typedef pthread_mutex_t | pithread_mutex_t |
| The mutex type. More... | |
| typedef pthread_mutexattr_t | pithread_mutexattr_t |
| The mutex attribute type. More... | |
| typedef pthread_cond_t | pithread_cond_t |
| The condition type. More... | |
| typedef pthread_condattr_t | pithread_condattr_t |
| The condition attribute type. More... | |
Functions | |
| GENERAL_ATT pithread_t | pithread_self (void) |
| Obtain the identifier of the current thread. More... | |
| GENERAL_ATT int | pithread_equal (pithread_t __thread1, pithread_t __thread2) |
| Compare two thread identifiers. More... | |
| GENERAL_ATT void | pithread_exit (void *__retval) |
| Terminate calling thread. More... | |
| GENERAL_ATT int | pithread_join (pithread_t __th, void **__thread_return) |
| Make calling thread wait for termination of another thread. More... | |
| GENERAL_ATT int | pithread_cancel (pithread_t __thread) |
| Cancel given thread immediately or at the next possibility. More... | |
| GENERAL_ATT int | pithread_mutex_init (pithread_mutex_t *__mutex, const pithread_mutexattr_t *__mutex_attr) |
| Initialize a mutex. More... | |
| GENERAL_ATT int | pithread_mutex_destroy (pithread_mutex_t *__mutex) |
| Destroy mutex. More... | |
| GENERAL_ATT int | pithread_mutex_trylock (pithread_mutex_t *__mutex) |
| Try to lock mutex (non-blocking). More... | |
| GENERAL_ATT int | pithread_mutex_lock (pithread_mutex_t *__mutex) |
| Wait until lock for mutex becomes available and lock it. More... | |
| GENERAL_ATT int | pithread_mutex_unlock (pithread_mutex_t *__mutex) |
| Unlock mutex. More... | |
| GENERAL_ATT int | pithread_cond_init (pithread_cond_t *__cond, const pithread_condattr_t *__cond_attr) |
| Initialize condition variable. More... | |
| GENERAL_ATT int | pithread_cond_destroy (pithread_cond_t *__cond) |
| Destroy condition variable. More... | |
| GENERAL_ATT int | pithread_cond_signal (pithread_cond_t *__cond) |
| Wake up one thread waiting for condition variable. More... | |
| GENERAL_ATT int | pithread_cond_broadcast (pithread_cond_t *__cond) |
| Wake up all threads waiting for condition variable. More... | |
| GENERAL_ATT int | pithread_cond_wait (pithread_cond_t *__cond, pithread_mutex_t *__mutex) |
| Wait for condition variable to be signaled or broadcast. More... | |
| GENERAL_ATT void | pithread_yield () |
|
|
|
|
|
|
|
|
The thread attribute type.
|
|
|
The condition type.
|
|
|
The condition attribute type.
|
|
|
The mutex type.
|
|
|
The mutex attribute type.
|
|
|
The thread type.
|
|
|
Cancel given thread immediately or at the next possibility.
|
|
|
Wake up all threads waiting for condition variable.
|
|
|
Destroy condition variable.
|
|
||||||||||||
|
Initialize condition variable.
|
|
|
Wake up one thread waiting for condition variable.
|
|
||||||||||||
|
Wait for condition variable to be signaled or broadcast.
|
|
||||||||||||
|
Compare two thread identifiers.
|
|
|
Terminate calling thread.
|
|
||||||||||||
|
Make calling thread wait for termination of another thread.
|
|
|
Destroy mutex.
|
|
||||||||||||
|
Initialize a mutex.
|
|
|
Wait until lock for mutex becomes available and lock it.
|
|
|
Try to lock mutex (non-blocking).
|
|
|
Unlock mutex.
|
|
|
Obtain the identifier of the current thread.
|
|
|
Yield the remainder of the current timeslice to other threads/processes. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002