From: asterix Date: Thu, 18 Dec 2008 17:21:34 +0000 (+0000) Subject: Fix and add comments. X-Git-Tag: 2.1.0~594 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5fd48a9f26d9e7268f16a21e112c92699bd19509;p=bertos.git Fix and add comments. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2088 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/signal_test.c b/bertos/kern/signal_test.c index ddd26485..a0fc610b 100644 --- a/bertos/kern/signal_test.c +++ b/bertos/kern/signal_test.c @@ -65,6 +65,9 @@ int count = 0; sigmask_t sig_to_master; sigmask_t sig_to_slave; +/* + * These macros generate the code needed to create the test process functions. + */ #define PROC_TEST_SLAVE(index, signal) static void proc_test##index(void) \ { \ for(;;) \ @@ -88,6 +91,7 @@ sigmask_t sig_to_slave; #define PROC_TEST_SLAVE_STACK(index) static cpu_stack_t proc_test##index##_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)]; #define PROC_TEST_SLAVE_INIT(index, master_process) proc_new(proc_test##index, master_process, sizeof(proc_test##index##_stack), proc_test##index##_stack) +// Generate the code for signal test. PROC_TEST_SLAVE(0, SIG_USER0) PROC_TEST_SLAVE(1, SIG_USER1) PROC_TEST_SLAVE(2, SIG_USER2)