RetroArch
Classes | Macros | Typedefs | Functions
lwp_messages.h File Reference
#include <gctypes.h>
#include <limits.h>
#include <string.h>
#include <lwp_threadq.h>
Include dependency graph for lwp_messages.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _mqbuffer
 
struct  _mqbuffercntrl
 
struct  _mqattr
 
struct  _mqcntrl
 

Macros

#define LWP_MQ_FIFO   0
 
#define LWP_MQ_PRIORITY   1
 
#define LWP_MQ_STATUS_SUCCESSFUL   0
 
#define LWP_MQ_STATUS_INVALID_SIZE   1
 
#define LWP_MQ_STATUS_TOO_MANY   2
 
#define LWP_MQ_STATUS_UNSATISFIED   3
 
#define LWP_MQ_STATUS_UNSATISFIED_NOWAIT   4
 
#define LWP_MQ_STATUS_DELETED   5
 
#define LWP_MQ_STATUS_TIMEOUT   6
 
#define LWP_MQ_STATUS_UNSATISFIED_WAIT   7
 
#define LWP_MQ_SEND_REQUEST   INT_MAX
 
#define LWP_MQ_SEND_URGENT   INT_MIN
 

Typedefs

typedef void(* mq_notifyhandler) (void *)
 
typedef struct _mqbuffer mq_buffer
 
typedef struct _mqbuffercntrl mq_buffercntrl
 
typedef struct _mqattr mq_attr
 
typedef struct _mqcntrl mq_cntrl
 

Functions

u32 __lwpmq_initialize (mq_cntrl *mqueue, mq_attr *attrs, u32 max_pendingmsgs, u32 max_msgsize)
 
void __lwpmq_close (mq_cntrl *mqueue, u32 status)
 
u32 __lwpmq_seize (mq_cntrl *mqueue, u32 id, void *buffer, u32 *size, u32 wait, u64 timeout)
 
u32 __lwpmq_submit (mq_cntrl *mqueue, u32 id, void *buffer, u32 size, u32 type, u32 wait, u64 timeout)
 
u32 __lwpmq_broadcast (mq_cntrl *mqueue, void *buffer, u32 size, u32 id, u32 *count)
 
void __lwpmq_msg_insert (mq_cntrl *mqueue, mq_buffercntrl *msg, u32 type)
 
u32 __lwpmq_flush (mq_cntrl *mqueue)
 
u32 __lwpmq_flush_support (mq_cntrl *mqueue)
 
void __lwpmq_flush_waitthreads (mq_cntrl *mqueue)
 

Macro Definition Documentation

◆ LWP_MQ_FIFO

#define LWP_MQ_FIFO   0

◆ LWP_MQ_PRIORITY

#define LWP_MQ_PRIORITY   1

◆ LWP_MQ_SEND_REQUEST

#define LWP_MQ_SEND_REQUEST   INT_MAX

◆ LWP_MQ_SEND_URGENT

#define LWP_MQ_SEND_URGENT   INT_MIN

◆ LWP_MQ_STATUS_DELETED

#define LWP_MQ_STATUS_DELETED   5

◆ LWP_MQ_STATUS_INVALID_SIZE

#define LWP_MQ_STATUS_INVALID_SIZE   1

◆ LWP_MQ_STATUS_SUCCESSFUL

#define LWP_MQ_STATUS_SUCCESSFUL   0

◆ LWP_MQ_STATUS_TIMEOUT

#define LWP_MQ_STATUS_TIMEOUT   6

◆ LWP_MQ_STATUS_TOO_MANY

#define LWP_MQ_STATUS_TOO_MANY   2

◆ LWP_MQ_STATUS_UNSATISFIED

#define LWP_MQ_STATUS_UNSATISFIED   3

◆ LWP_MQ_STATUS_UNSATISFIED_NOWAIT

#define LWP_MQ_STATUS_UNSATISFIED_NOWAIT   4

◆ LWP_MQ_STATUS_UNSATISFIED_WAIT

#define LWP_MQ_STATUS_UNSATISFIED_WAIT   7

Typedef Documentation

◆ mq_attr

typedef struct _mqattr mq_attr

◆ mq_buffer

typedef struct _mqbuffer mq_buffer

◆ mq_buffercntrl

◆ mq_cntrl

typedef struct _mqcntrl mq_cntrl

◆ mq_notifyhandler

typedef void(* mq_notifyhandler) (void *)

Function Documentation

◆ __lwpmq_broadcast()

u32 __lwpmq_broadcast ( mq_cntrl mqueue,
void buffer,
u32  size,
u32  id,
u32 count 
)
Here is the call graph for this function:

◆ __lwpmq_close()

void __lwpmq_close ( mq_cntrl mqueue,
u32  status 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwpmq_flush()

u32 __lwpmq_flush ( mq_cntrl mqueue)
Here is the call graph for this function:

◆ __lwpmq_flush_support()

u32 __lwpmq_flush_support ( mq_cntrl mqueue)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwpmq_flush_waitthreads()

void __lwpmq_flush_waitthreads ( mq_cntrl mqueue)
Here is the call graph for this function:

◆ __lwpmq_initialize()

u32 __lwpmq_initialize ( mq_cntrl mqueue,
mq_attr attrs,
u32  max_pendingmsgs,
u32  max_msgsize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwpmq_msg_insert()

void __lwpmq_msg_insert ( mq_cntrl mqueue,
mq_buffercntrl msg,
u32  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwpmq_seize()

u32 __lwpmq_seize ( mq_cntrl mqueue,
u32  id,
void buffer,
u32 size,
u32  wait,
u64  timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwpmq_submit()

u32 __lwpmq_submit ( mq_cntrl mqueue,
u32  id,
void buffer,
u32  size,
u32  type,
u32  wait,
u64  timeout 
)
Here is the call graph for this function:
Here is the caller graph for this function: