X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fmsg.h;h=2d4672204827495cfef7953960de12067285be06;hb=8e03a3e8faf92d278f20a66a6d302fab790d6991;hp=acd99c599edb0deb75893a0bb208bfd943511df7;hpb=e423e63cade618baf616a79b99aaab5de74ec76e;p=bertos.git diff --git a/bertos/kern/msg.h b/bertos/kern/msg.h index acd99c59..2d467220 100644 --- a/bertos/kern/msg.h +++ b/bertos/kern/msg.h @@ -35,7 +35,6 @@ * This module implements a common system for executing * a user defined action calling a hook function. * - * \version $Id$ * * \author Bernie Innocenti * @@ -67,6 +66,11 @@ * 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 @@ -106,7 +110,7 @@ * } 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) @@ -174,6 +178,9 @@ * } * } * \endcode + * + * $WIZ$ module_name = "msg" + * $WIZ$ module_depends = "event", "signal", "kernel" */