interp.c File Reference
VM Interpreter. More...
Go to the source code of this file.
Functions | |
| PmReturn_t | interpret (const uint8_t returnOnNoThreads) |
| Interprets the available threads. | |
| PmReturn_t | interp_reschedule (void) |
| Selects a thread to run and changes the VM internal variables to let the switch-loop execute the chosen one in the next iteration. | |
| PmReturn_t | interp_addThread (pPmFunc_t pfunc) |
| Creates a thread object and adds it to the queue of threads to be executed while interpret() is running. | |
| void | interp_setRescheduleFlag (uint8_t boolean) |
| Sets the reschedule flag. | |
Detailed Description
VM Interpreter.
VM interpreter operations.
Definition in file interp.c.
Function Documentation
| PmReturn_t interp_addThread | ( | pPmFunc_t | pfunc ) |
Creates a thread object and adds it to the queue of threads to be executed while interpret() is running.
The given obj may be a function, module, or class. Creates a frame for the given function.
- Parameters:
-
pfunc Ptr to function to be executed as a thread.
- Returns:
- Return status
| PmReturn_t interp_reschedule | ( | void | ) |
| void interp_setRescheduleFlag | ( | uint8_t | boolean ) |
| PmReturn_t interpret | ( | const uint8_t | returnOnNoThreads ) |
Generated on Tue Jul 12 2022 17:07:01 by
1.7.2