Loading...
Searching...
No Matches
Threads

API for thread. The thread functions are either implemented on top of the pthread library or the SimGrid library when the simulated performance mode is enabled (SimGridSupport). More...

## Macros

#define | STARPU_PTHREAD_CREATE_ON(name, thread, attr, routine, arg, where)
#define | STARPU_PTHREAD_CREATE(thread, attr, routine, arg)
#define | STARPU_PTHREAD_MUTEX_INIT(mutex, attr)
#define | STARPU_PTHREAD_MUTEX_INIT0(mutex, attr)
#define | STARPU_PTHREAD_MUTEX_DESTROY(mutex)
#define | STARPU_PTHREAD_MUTEX_LOCK(mutex)
#define | STARPU_PTHREAD_MUTEX_UNLOCK(mutex)
#define | STARPU_PTHREAD_KEY_CREATE(key, destr)
#define | STARPU_PTHREAD_KEY_DELETE(key)
#define | STARPU_PTHREAD_SETSPECIFIC(key, ptr)
#define | STARPU_PTHREAD_GETSPECIFIC(key)
#define | STARPU_PTHREAD_RWLOCK_INIT(rwlock, attr)
#define | STARPU_PTHREAD_RWLOCK_INIT0(rwlock, attr)
#define | STARPU_PTHREAD_RWLOCK_RDLOCK(rwlock)
#define | STARPU_PTHREAD_RWLOCK_WRLOCK(rwlock)
#define | STARPU_PTHREAD_RWLOCK_UNLOCK(rwlock)
#define | STARPU_PTHREAD_RWLOCK_DESTROY(rwlock)
#define | STARPU_PTHREAD_COND_INIT(cond, attr)
#define | STARPU_PTHREAD_COND_INIT0(cond, attr)
#define | STARPU_PTHREAD_COND_DESTROY(cond)
#define | STARPU_PTHREAD_COND_SIGNAL(cond)
#define | STARPU_PTHREAD_COND_BROADCAST(cond)
#define | STARPU_PTHREAD_COND_WAIT(cond, mutex)
#define | STARPU_PTHREAD_BARRIER_INIT(barrier, attr, count)
#define | STARPU_PTHREAD_BARRIER_DESTROY(barrier)
#define | STARPU_PTHREAD_BARRIER_WAIT(barrier)

## Detailed Description

API for thread. The thread functions are either implemented on top of the pthread library or the SimGrid library when the simulated performance mode is enabled (SimGridSupport).

## Macro Definition Documentation

## STARPU_PTHREAD_CREATE_ON

#define STARPU_PTHREAD_CREATE_ON | ( |  | name,
|  |  | thread,
|  |  | attr,
|  |  | routine,
|  |  | arg,
|  |  | where
| ) |  |

Call starpu_pthread_create_on() and abort on error.

## STARPU_PTHREAD_CREATE

#define STARPU_PTHREAD_CREATE | ( |  | thread,
|  |  | attr,
|  |  | routine,
|  |  | arg
| ) |  |

Call starpu_pthread_create() and abort on error.

## STARPU_PTHREAD_MUTEX_INIT

#define STARPU_PTHREAD_MUTEX_INIT | ( |  | mutex,
|  |  | attr
| ) |  |

Call starpu_pthread_mutex_init() and abort on error.

## STARPU_PTHREAD_MUTEX_INIT0

#define STARPU_PTHREAD_MUTEX_INIT0 | ( |  | mutex,
|  |  | attr
| ) |  |

Call starpu_pthread_mutex_init() only if the content of PTHREAD_MUTEX_INITIALIZER is not zero. This should be called instead of STARPU_PTHREAD_MUTEX_INIT when it is known that the content of the pthread_mutex_t was already zeroed.

## STARPU_PTHREAD_MUTEX_DESTROY

#define STARPU_PTHREAD_MUTEX_DESTROY | ( |  | mutex | ) |

Call starpu_pthread_mutex_destroy() and abort on error.

## STARPU_PTHREAD_MUTEX_LOCK

#define STARPU_PTHREAD_MUTEX_LOCK | ( |  | mutex | ) |

Call starpu_pthread_mutex_lock() and abort on error.

## STARPU_PTHREAD_MUTEX_UNLOCK

#define STARPU_PTHREAD_MUTEX_UNLOCK | ( |  | mutex | ) |

Call starpu_pthread_mutex_unlock() and abort on error.

## STARPU_PTHREAD_KEY_CREATE

#define STARPU_PTHREAD_KEY_CREATE | ( |  | key,
|  |  | destr
| ) |  |

Call starpu_pthread_key_create() and abort on error.

## STARPU_PTHREAD_KEY_DELETE

#define STARPU_PTHREAD_KEY_DELETE | ( |  | key | ) |

Call starpu_pthread_key_delete() and abort on error.

## STARPU_PTHREAD_SETSPECIFIC

#define STARPU_PTHREAD_SETSPECIFIC | ( |  | key,
|  |  | ptr
| ) |  |

Call starpu_pthread_setspecific() and abort on error.

## STARPU_PTHREAD_GETSPECIFIC

#define STARPU_PTHREAD_GETSPECIFIC | ( |  | key | ) |

Call starpu_pthread_getspecific() and abort on error.

## STARPU_PTHREAD_RWLOCK_INIT

#define STARPU_PTHREAD_RWLOCK_INIT | ( |  | rwlock,
|  |  | attr
| ) |  |

Call starpu_pthread_rwlock_init() and abort on error.

## STARPU_PTHREAD_RWLOCK_INIT0

#define STARPU_PTHREAD_RWLOCK_INIT0 | ( |  | rwlock,
|  |  | attr
| ) |  |

Call starpu_pthread_rwlock_init() only if the content of PTHREAD_RWLOCK_INITIALIZER is not zero. This should be called instead of STARPU_PTHREAD_RWLOCK_INIT when it is known that the content of the pthread_rwlock_t was already zeroed.

## STARPU_PTHREAD_RWLOCK_RDLOCK

#define STARPU_PTHREAD_RWLOCK_RDLOCK | ( |  | rwlock | ) |

Call starpu_pthread_rwlock_rdlock() and abort on error.

## STARPU_PTHREAD_RWLOCK_WRLOCK

#define STARPU_PTHREAD_RWLOCK_WRLOCK | ( |  | rwlock | ) |

Call starpu_pthread_rwlock_wrlock() and abort on error.

## STARPU_PTHREAD_RWLOCK_UNLOCK

#define STARPU_PTHREAD_RWLOCK_UNLOCK | ( |  | rwlock | ) |

Call starpu_pthread_rwlock_unlock() and abort on error.

## STARPU_PTHREAD_RWLOCK_DESTROY

#define STARPU_PTHREAD_RWLOCK_DESTROY | ( |  | rwlock | ) |

Call starpu_pthread_rwlock_destroy() and abort on error.

## STARPU_PTHREAD_COND_INIT

#define STARPU_PTHREAD_COND_INIT | ( |  | cond,
|  |  | attr
| ) |  |

Call starpu_pthread_cond_init() and abort on error.

## STARPU_PTHREAD_COND_INIT0

#define STARPU_PTHREAD_COND_INIT0 | ( |  | cond,
|  |  | attr
| ) |  |

Call starpu_pthread_cond_init() only if the content of PTHREAD_COND_INITIALIZER is not zero. This should be called instead of STARPU_PTHREAD_COND_INIT when it is known that the content of the pthread_cond_t was already zeroed.

## STARPU_PTHREAD_COND_DESTROY

#define STARPU_PTHREAD_COND_DESTROY | ( |  | cond | ) |

Call starpu_pthread_cond_destroy() and abort on error.

## STARPU_PTHREAD_COND_SIGNAL

#define STARPU_PTHREAD_COND_SIGNAL | ( |  | cond | ) |

Call starpu_pthread_cond_signal() and abort on error.

## STARPU_PTHREAD_COND_BROADCAST

#define STARPU_PTHREAD_COND_BROADCAST | ( |  | cond | ) |

Call starpu_pthread_cond_broadcast() and abort on error.

## STARPU_PTHREAD_COND_WAIT

#define STARPU_PTHREAD_COND_WAIT | ( |  | cond,
|  |  | mutex
| ) |  |

Call starpu_pthread_cond_wait() and abort on error.

## STARPU_PTHREAD_BARRIER_INIT

#define STARPU_PTHREAD_BARRIER_INIT | ( |  | barrier,
|  |  | attr,
|  |  | count
| ) |  |

Call starpu_pthread_barrier_init() and abort on error.

## STARPU_PTHREAD_BARRIER_DESTROY

#define STARPU_PTHREAD_BARRIER_DESTROY | ( |  | barrier | ) |

Call starpu_pthread_barrier_destroy() and abort on error.

## STARPU_PTHREAD_BARRIER_WAIT

#define STARPU_PTHREAD_BARRIER_WAIT | ( |  | barrier | ) |

Call starpu_pthread_barrier_wait() and abort on error.