#include "interp.h"
Go to the source code of this file.
Classes | |
struct | PmThread_s |
Defines | |
#define | THREAD_RESCHEDULE_FREQUENCY 10 |
Typedefs | |
typedef enum PmInterpCtrl_e | PmInterpCtrl_t |
typedef enum PmInterpCtrl_e * | pPmInterpCtrl_t |
typedef struct PmThread_s | PmThread_t |
typedef struct PmThread_s * | pPmThread_t |
Enumerations | |
enum | PmInterpCtrl_e { INTERP_CTRL_ERR = -1, INTERP_CTRL_EXIT = 0, INTERP_CTRL_CONT = 1, INTERP_CTRL_RESCHED = 2 } |
Functions | |
PmReturn_t | thread_new (pPmObj_t pframe, pPmObj_t *r_pobj) |
Encapsulating a frame pointer, a root code object and thread state.
#define THREAD_RESCHEDULE_FREQUENCY 10 |
Frequency in Hz to switch threads
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
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.
PmReturn_t thread_new | ( | pPmObj_t | pframe, | |
pPmObj_t * | r_pobj | |||
) |
Constructs a thread for a root frame.
pframe | Frame object as a basis for this thread. | |
r_obj | Addr to th newly created thread object. |