mupdf
Loading...
Searching...
No Matches
mu-threads.h File Reference

Go to the source code of this file.

Classes

struct  mu_semaphore
struct  mu_thread
struct  mu_mutex

Macros

#define DISABLE_MUTHREADS

Typedefs

typedef struct mu_thread mu_thread
typedef struct mu_semaphore mu_semaphore
typedef struct mu_mutex mu_mutex
typedef void mu_thread_fn(void *arg)

Functions

int mu_create_semaphore (mu_semaphore *sem)
void mu_destroy_semaphore (mu_semaphore *sem)
int mu_trigger_semaphore (mu_semaphore *sem)
int mu_wait_semaphore (mu_semaphore *sem)
int mu_create_thread (mu_thread *th, mu_thread_fn *fn, void *arg)
void mu_destroy_thread (mu_thread *th)
int mu_create_mutex (mu_mutex *mutex)
void mu_destroy_mutex (mu_mutex *mutex)
void mu_lock_mutex (mu_mutex *mutex)
void mu_unlock_mutex (mu_mutex *mutex)

Macro Definition Documentation

◆ DISABLE_MUTHREADS

#define DISABLE_MUTHREADS

Typedef Documentation

◆ mu_mutex

typedef struct mu_mutex mu_mutex

◆ mu_semaphore

typedef struct mu_semaphore mu_semaphore

◆ mu_thread

typedef struct mu_thread mu_thread

◆ mu_thread_fn

typedef void mu_thread_fn(void *arg)

Function Documentation

◆ mu_create_mutex()

int mu_create_mutex ( mu_mutex * mutex)

◆ mu_create_semaphore()

int mu_create_semaphore ( mu_semaphore * sem)

◆ mu_create_thread()

int mu_create_thread ( mu_thread * th,
mu_thread_fn * fn,
void * arg )

◆ mu_destroy_mutex()

void mu_destroy_mutex ( mu_mutex * mutex)

◆ mu_destroy_semaphore()

void mu_destroy_semaphore ( mu_semaphore * sem)

◆ mu_destroy_thread()

void mu_destroy_thread ( mu_thread * th)

◆ mu_lock_mutex()

void mu_lock_mutex ( mu_mutex * mutex)

◆ mu_trigger_semaphore()

int mu_trigger_semaphore ( mu_semaphore * sem)

◆ mu_unlock_mutex()

void mu_unlock_mutex ( mu_mutex * mutex)

◆ mu_wait_semaphore()

int mu_wait_semaphore ( mu_semaphore * sem)