#include "BBC/LLI.ih"
#include "BBC/TASK.h"
#include "BBC/FORK.h"
Data Structures | |
| struct | _FORK_fcb |
| The Fork Control Block. More... | |
Typedefs | |
| typedef enum _FORK_msg_type | FORK_msg_type |
| Typedef for enum FORK_msg_type. | |
Enumerations | |
| enum | _FORK_msg_type { FORK_K_MSG_TYPE_USR = 0, FORK_K_MSG_TYPE_SYS = 1 } |
| Distinguishes between the two types of messages, user or system. | |
Functions | |
| int | FORK_pend (FORK_fcb *fcb) |
| This is an internal routine used by the FORK servicing task. More... | |
| void | create_list (LLI_list *list, FORK_msg_sys *msgs, int cnt, FORK_type type) |
| Internal routine to initialize the system pool of messages. More... | |
| int | que (FORK_fcb *fcb, FORK_cb_rtn handler, FORK_msg_hdr *msg, FORK_msg_type msg_type) |
| Internal routine to que a message for servicing. More... | |
| int | FORK_fcb_sizeof (void) |
| Returns the size, in bytes, of a FORK Control Block. More... | |
| int | FORK_create (FORK_fcb *fcb, FORK_cb_rtn def_handler, FORK_cb_prm ctx, FORK_cb_prm tmo_ctx, int tmo, FORK_msg_sys *msg_blks, int msg_cnt, FORK_type type, const TASK_attr *attributes) |
| Creates a FORK message que. More... | |
| int | FORK_destroy (FORK_fcb *fcb) |
| Destroys a FORK que. More... | |
| int | FORK_qsys (FORK_fcb *fcb, FORK_cb_rtn handler, void *contents, int tmo) |
| Ques a message using the internal FORK message blocks. More... | |
| int | FORK_qusr (FORK_fcb *fcb, FORK_cb_rtn handler, FORK_msg_hdr *msg) |
| Ques a user composed message. More... | |
|
||||||||||||||||||||
|
Internal routine to initialize the system pool of messages.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Creates a FORK message que.
|
|
|
Destroys a FORK que.
|
|
|
Returns the size, in bytes, of a FORK Control Block.
|
|
|
This is an internal routine used by the FORK servicing task.
|
|
||||||||||||||||||||
|
Ques a message using the internal FORK message blocks.
Note that because the message is internally allocated it may be possible that this list is exhausted. A timeout parameter is provided to handle this situation. |
|
||||||||||||||||
|
Ques a user composed message.
For the extra work involved in using this routine, the user gets to control his own memory allocation and the exact contents of the message. This means that there is almost no case, other than an internal corruption, under which this routine can fail. |
|
||||||||||||||||||||
|
Internal routine to que a message for servicing.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001