RetroArch
Macros | Typedefs | Functions | Variables
ctr_pthread.h File Reference
#include <3ds/thread.h>
#include <3ds/synchronization.h>
#include <3ds/svc.h>
#include <time.h>
#include <errno.h>
#include <retro_inline.h>
Include dependency graph for ctr_pthread.h:

Go to the source code of this file.

Macros

#define STACKSIZE   (4 * 1024)
 

Typedefs

typedef Thread pthread_t
 
typedef LightLock pthread_mutex_t
 
typedef voidpthread_mutexattr_t
 
typedef int pthread_attr_t
 
typedef LightEvent pthread_cond_t
 
typedef int pthread_condattr_t
 

Functions

static void ctr_thread_launcher (void *data)
 
static INLINE int pthread_create (pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 
static INLINE pthread_t pthread_self (void)
 
static INLINE int pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
 
static INLINE int pthread_mutex_destroy (pthread_mutex_t *mutex)
 
static INLINE int pthread_mutex_lock (pthread_mutex_t *mutex)
 
static INLINE int pthread_mutex_unlock (pthread_mutex_t *mutex)
 
static INLINE void pthread_exit (void *retval)
 
static INLINE int pthread_detach (pthread_t thread)
 
static INLINE int pthread_join (pthread_t thread, void **retval)
 
static INLINE int pthread_mutex_trylock (pthread_mutex_t *mutex)
 
static INLINE int pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
 
static INLINE int pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
 
static INLINE int pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *attr)
 
static INLINE int pthread_cond_signal (pthread_cond_t *cond)
 
static INLINE int pthread_cond_broadcast (pthread_cond_t *cond)
 
static INLINE int pthread_cond_destroy (pthread_cond_t *cond)
 
static INLINE int pthread_equal (pthread_t t1, pthread_t t2)
 

Variables

static bool mutex_inited = false
 
static LightLock safe_double_thread_launch
 
static void *(* start_routine_jump )(void *)
 

Macro Definition Documentation

◆ STACKSIZE

#define STACKSIZE   (4 * 1024)

Typedef Documentation

◆ pthread_attr_t

typedef int pthread_attr_t

◆ pthread_cond_t

typedef LightEvent pthread_cond_t

◆ pthread_condattr_t

typedef int pthread_condattr_t

◆ pthread_mutex_t

typedef LightLock pthread_mutex_t

◆ pthread_mutexattr_t

◆ pthread_t

typedef Thread pthread_t

Function Documentation

◆ ctr_thread_launcher()

static void ctr_thread_launcher ( void data)
static
Here is the caller graph for this function:

◆ pthread_cond_broadcast()

static INLINE int pthread_cond_broadcast ( pthread_cond_t cond)
static
Here is the call graph for this function:

◆ pthread_cond_destroy()

static INLINE int pthread_cond_destroy ( pthread_cond_t cond)
static

◆ pthread_cond_init()

static INLINE int pthread_cond_init ( pthread_cond_t cond,
const pthread_condattr_t attr 
)
static
Here is the call graph for this function:

◆ pthread_cond_signal()

static INLINE int pthread_cond_signal ( pthread_cond_t cond)
static
Here is the call graph for this function:

◆ pthread_cond_timedwait()

static INLINE int pthread_cond_timedwait ( pthread_cond_t cond,
pthread_mutex_t mutex,
const struct timespec *  abstime 
)
static
Here is the call graph for this function:

◆ pthread_cond_wait()

static INLINE int pthread_cond_wait ( pthread_cond_t cond,
pthread_mutex_t mutex 
)
static
Here is the call graph for this function:

◆ pthread_create()

static INLINE int pthread_create ( pthread_t thread,
const pthread_attr_t attr,
void *(*)(void *)  start_routine,
void arg 
)
static
Here is the call graph for this function:

◆ pthread_detach()

static INLINE int pthread_detach ( pthread_t  thread)
static
Here is the call graph for this function:

◆ pthread_equal()

static INLINE int pthread_equal ( pthread_t  t1,
pthread_t  t2 
)
static

◆ pthread_exit()

static INLINE void pthread_exit ( void retval)
static
Here is the call graph for this function:

◆ pthread_join()

static INLINE int pthread_join ( pthread_t  thread,
void **  retval 
)
static

◆ pthread_mutex_destroy()

static INLINE int pthread_mutex_destroy ( pthread_mutex_t mutex)
static

◆ pthread_mutex_init()

static INLINE int pthread_mutex_init ( pthread_mutex_t mutex,
const pthread_mutexattr_t attr 
)
static

◆ pthread_mutex_lock()

static INLINE int pthread_mutex_lock ( pthread_mutex_t mutex)
static

◆ pthread_mutex_trylock()

static INLINE int pthread_mutex_trylock ( pthread_mutex_t mutex)
static

◆ pthread_mutex_unlock()

static INLINE int pthread_mutex_unlock ( pthread_mutex_t mutex)
static

◆ pthread_self()

static INLINE pthread_t pthread_self ( void  )
static
Here is the call graph for this function:

Variable Documentation

◆ mutex_inited

bool mutex_inited = false
static

◆ safe_double_thread_launch

LightLock safe_double_thread_launch
static

◆ start_routine_jump

void*(* start_routine_jump) (void *)
static