digiKam
threads.h File Reference

Go to the source code of this file.

Classes

class  de265_progress_lock
 
class  thread_pool
 
class  thread_task
 

Macros

#define MAX_THREADS   32
 

Typedefs

typedef pthread_cond_t de265_cond
 
typedef pthread_mutex_t de265_mutex
 
typedef pthread_t de265_thread
 

Functions

void add_task (thread_pool *pool, thread_task *task)
 
void de265_cond_broadcast (de265_cond *c, de265_mutex *m)
 
void de265_cond_destroy (de265_cond *c)
 
void de265_cond_init (de265_cond *c)
 
void de265_cond_signal (de265_cond *c)
 
void de265_cond_wait (de265_cond *c, de265_mutex *m)
 
void de265_mutex_destroy (de265_mutex *m)
 
void de265_mutex_init (de265_mutex *m)
 
void de265_mutex_lock (de265_mutex *m)
 
void de265_mutex_unlock (de265_mutex *m)
 
int de265_thread_create (de265_thread *t, void *(*start_routine)(void *), void *arg)
 
void de265_thread_destroy (de265_thread *t)
 
void de265_thread_join (de265_thread t)
 
de265_error start_thread_pool (thread_pool *pool, int num_threads)
 
void stop_thread_pool (thread_pool *pool)
 

Macro Definition Documentation

◆ MAX_THREADS

#define MAX_THREADS   32

Typedef Documentation

◆ de265_cond

typedef pthread_cond_t de265_cond

◆ de265_mutex

typedef pthread_mutex_t de265_mutex

◆ de265_thread

typedef pthread_t de265_thread

Function Documentation

◆ add_task()

void add_task ( thread_pool pool,
thread_task task 
)

◆ de265_cond_broadcast()

void de265_cond_broadcast ( de265_cond c,
de265_mutex m 
)

◆ de265_cond_destroy()

void de265_cond_destroy ( de265_cond c)

◆ de265_cond_init()

void de265_cond_init ( de265_cond c)

◆ de265_cond_signal()

void de265_cond_signal ( de265_cond c)

◆ de265_cond_wait()

void de265_cond_wait ( de265_cond c,
de265_mutex m 
)

◆ de265_mutex_destroy()

void de265_mutex_destroy ( de265_mutex m)

◆ de265_mutex_init()

void de265_mutex_init ( de265_mutex m)

◆ de265_mutex_lock()

void de265_mutex_lock ( de265_mutex m)

◆ de265_mutex_unlock()

void de265_mutex_unlock ( de265_mutex m)

◆ de265_thread_create()

int de265_thread_create ( de265_thread t,
void *(*)(void *)  start_routine,
void *  arg 
)

◆ de265_thread_destroy()

void de265_thread_destroy ( de265_thread t)

◆ de265_thread_join()

void de265_thread_join ( de265_thread  t)

◆ start_thread_pool()

de265_error start_thread_pool ( thread_pool pool,
int  num_threads 
)

◆ stop_thread_pool()

void stop_thread_pool ( thread_pool pool)