python-on-a-chip online compiler
thread.h File Reference
VM Thread. More...
Go to the source code of this file.
Data Structures | |
struct | PmThread_s |
Thread obj. More... | |
Typedefs | |
typedef enum PmInterpCtrl_e | PmInterpCtrl_t |
Interpreter return values. | |
typedef struct PmThread_s | PmThread_t |
Thread obj. | |
Enumerations | |
enum | PmInterpCtrl_e { INTERP_CTRL_ERR = -1, INTERP_CTRL_EXIT = 0, INTERP_CTRL_CONT = 1, INTERP_CTRL_RESCHED = 2 } |
Interpreter return values. More... | |
Functions | |
PmReturn_t | thread_new (pPmObj_t pframe, pPmObj_t *r_pobj) |
Constructs a thread for a root frame. |
Detailed Description
VM Thread.
Encapsulating a frame pointer, a root code object and thread state.
Definition in file thread.h.
Typedef Documentation
typedef enum PmInterpCtrl_e PmInterpCtrl_t |
Interpreter return values.
Used to control interpreter loop and indicate return value. Negative values indicate erroneous results. Positive values indicate "continue interpreting", but first do something special like reschedule threads or (TBD) sweep the heap.
typedef struct PmThread_s PmThread_t |
Thread obj.
Enumeration Type Documentation
enum PmInterpCtrl_e |
Interpreter return values.
Used to control interpreter loop and indicate return value. Negative values indicate erroneous results. Positive values indicate "continue interpreting", but first do something special like reschedule threads or (TBD) sweep the heap.
Function Documentation
PmReturn_t thread_new | ( | pPmObj_t | pframe, |
pPmObj_t * | r_pobj | ||
) |
Generated on Tue Jul 12 2022 23:13:47 by 1.7.2