projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the base/advance choice page.
[bertos.git]
/
bertos
/
kern
/
msg.h
diff --git
a/bertos/kern/msg.h
b/bertos/kern/msg.h
index 05bbd7ef18c174782f6f368b3c3f7e2f595179cc..f00f6060294e224edd97c65c2abea38a23fc6ce6 100644
(file)
--- a/
bertos/kern/msg.h
+++ b/
bertos/kern/msg.h
@@
-67,6
+67,11
@@
* receiver wakes up, it usually invokes msg_get() to pick
* the next message from the port.
*
* receiver wakes up, it usually invokes msg_get() to pick
* the next message from the port.
*
+ * \note
+ * When you put a message into a port, such message becomes
+ * unavailable until you retrieve it using msg_get(), eg.
+ * you must not delete it or put it into another port.
+ *
* Message ports can hold any number of pending messages,
* and receivers usually process them in FIFO order.
* Other scheduling policies are possible, but not implemented
* Message ports can hold any number of pending messages,
* and receivers usually process them in FIFO order.
* Other scheduling policies are possible, but not implemented
@@
-106,7
+111,7
@@
* } TestMsg;
*
*
* } TestMsg;
*
*
- *
static cpu_stack_t sender_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]
;
+ *
PROC_DEFINE_STACK(sender_stack, KERN_MINSTACKSIZE)
;
*
* // A process that sends two messages and waits for replies.
* static void sender_proc(void)
*
* // A process that sends two messages and waits for replies.
* static void sender_proc(void)
@@
-174,6
+179,9
@@
* }
* }
* \endcode
* }
* }
* \endcode
+ *
+ * $WIZ$ module_name = "msg"
+ * $WIZ$ module_depends = "event", "signal", "kernel"
*/
*/
@@
-283,4
+291,8
@@
INLINE void msg_reply(Msg *msg)
msg_put(msg->replyPort, msg);
}
msg_put(msg->replyPort, msg);
}
+int msg_testRun(void);
+int msg_testSetup(void);
+int msg_testTearDown(void);
+
#endif /* KERN_MSG_H */
#endif /* KERN_MSG_H */