RetroArch
Classes | Macros | Functions
switch_pthread.h File Reference
#include <time.h>
#include <stdio.h>
#include <switch.h>
#include <errno.h>
#include <retro_inline.h>
Include dependency graph for switch_pthread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ThreadVars
 

Macros

#define THREADVARS_MAGIC   0x21545624 /* !TV$ */
 

Functions

int pthread_create (pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
 
void pthread_exit (void *retval)
 
static INLINE ThreadVarsgetThreadVars (void)
 
static INLINE Thread threadGetCurrent (void)
 
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)
 
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)
 
INLINE int pthread_cond_destroy (pthread_cond_t *cond)
 
INLINE int pthread_equal (pthread_t t1, pthread_t t2)
 

Macro Definition Documentation

◆ THREADVARS_MAGIC

#define THREADVARS_MAGIC   0x21545624 /* !TV$ */

Function Documentation

◆ getThreadVars()

static INLINE ThreadVars* getThreadVars ( void  )
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()

INLINE int pthread_cond_destroy ( pthread_cond_t cond)
Here is the caller graph for this function:

◆ 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()

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

◆ pthread_detach()

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

◆ pthread_equal()

INLINE int pthread_equal ( pthread_t  t1,
pthread_t  t2 
)

◆ pthread_exit()

void pthread_exit ( void retval)
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:

◆ threadGetCurrent()

static INLINE Thread threadGetCurrent ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function: