Defines | |
| #define | PR_IDLE 5 |
| #define | PR_NORMAL 50 |
| #define | PR_RUNTIME 100 |
Typedefs | |
| typedef int | priority_t |
Enumerations | |
| enum | modulestate_t { MODULE_OK = 0, MODULE_BAD, MODULE_TIMEOUT } |
Functions | |
| long | init_module (struct module_t *ptr_module) |
| void | exit (int exit_code) |
| int | execute_module (char *sz_command_line, long *ptr_retcode, clock_t timeout) |
| bool | start_module (char *command_line) |
| void | increment_usage (void) |
| void | decrement_usage (void) |
| bool | has_focus (void) |
| bool | sleep (clock_t timeout) |
Compounds | ||
| struct | Module | The CyOS Module |
| struct | module_t | The application module structure |
| struct | Process | A kind of thread that can process messages |
| struct | Queue | Messages queue; messages are stored in the queue |
| struct | SystemThread | Base object for all execution units (threads) |
| struct | Thread | The main thread object for the CyOS |
These structures and functions are used to control the application as a whole. You may want to look at cWinApp and module_t structures.
|
|
Very low priority (for background tasks). |
|
|
Normal (medium) priority. |
|
|
Very high priority (for runtime threads). |
|
|
The thread priority.
|
|
|
The result of the module's execution.
|
|
|
Decrements the reference count for the current module.
|
|
|
Loads and executes the module, then waits for it's module_main to exits.
|
|
|
Exits current the thread with some code.
|
|
|
Tests whether the current process has the focus.
|
|
|
Increments the reference count for the current module.
|
|
|
Module initializer.
|
|
|
Pauses execution of the current thread.
|
|
|
Starts execution of the designated module (do not wait until it initializes!).
|
|
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |