Numworks Epsilon  1.4.1
Graphing Calculator Operating System
mpstate.h File Reference
#include <stdint.h>
#include "py/mpconfig.h"
#include "py/mpthread.h"
#include "py/misc.h"
#include "py/nlr.h"
#include "py/obj.h"
#include "py/objlist.h"
#include "py/objexcept.h"

Go to the source code of this file.

Classes

struct  _mp_sched_item_t
 
struct  _mp_state_mem_t
 
struct  _mp_state_vm_t
 
struct  _mp_state_thread_t
 
struct  _mp_state_ctx_t
 

Macros

#define MP_SCHED_IDLE   (1)
 
#define MP_SCHED_LOCKED   (-1)
 
#define MP_SCHED_PENDING   (0)
 
#define MP_STATE_VM(x)   (mp_state_ctx.vm.x)
 
#define MP_STATE_MEM(x)   (mp_state_ctx.mem.x)
 
#define MP_STATE_THREAD(x)   (mp_state_ctx.thread.x)
 

Typedefs

typedef struct _mp_sched_item_t mp_sched_item_t
 
typedef struct _mp_state_mem_t mp_state_mem_t
 
typedef struct _mp_state_vm_t mp_state_vm_t
 
typedef struct _mp_state_thread_t mp_state_thread_t
 
typedef struct _mp_state_ctx_t mp_state_ctx_t
 

Variables

mp_state_ctx_t mp_state_ctx
 

Macro Definition Documentation

◆ MP_SCHED_IDLE

#define MP_SCHED_IDLE   (1)

Definition at line 54 of file mpstate.h.

◆ MP_SCHED_LOCKED

#define MP_SCHED_LOCKED   (-1)

Definition at line 55 of file mpstate.h.

◆ MP_SCHED_PENDING

#define MP_SCHED_PENDING   (0)

Definition at line 56 of file mpstate.h.

◆ MP_STATE_MEM

#define MP_STATE_MEM (   x)    (mp_state_ctx.mem.x)

Definition at line 242 of file mpstate.h.

◆ MP_STATE_THREAD

#define MP_STATE_THREAD (   x)    (mp_state_ctx.thread.x)

Definition at line 248 of file mpstate.h.

◆ MP_STATE_VM

#define MP_STATE_VM (   x)    (mp_state_ctx.vm.x)

Definition at line 241 of file mpstate.h.

Typedef Documentation

◆ mp_sched_item_t

◆ mp_state_ctx_t

◆ mp_state_mem_t

◆ mp_state_thread_t

◆ mp_state_vm_t

typedef struct _mp_state_vm_t mp_state_vm_t

Variable Documentation

◆ mp_state_ctx

mp_state_ctx_t mp_state_ctx

Definition at line 33 of file mpstate.c.