diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 00:54:36 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2003-11-11 00:54:36 +0000 |
commit | 04e934a89e46f668c770c063a6969ceafd213731 (patch) | |
tree | c75eab30e1130223b4208be7fc8ee49144d6e02c /c/src/tests/libtests/rtems++/Task2.cc | |
parent | 2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-04e934a89e46f668c770c063a6969ceafd213731.tar.bz2 |
2003-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpuuse/.cvsignore: Remove.
* cpuuse/Makefile.am: Remove.
* cpuuse/cpuuse.scn: Remove.
* cpuuse/init.c: Remove.
* cpuuse/system.h: Remove.
* cpuuse/task1.c: Remove.
* cpuuse/task2.c: Remove.
* cpuuse/task3.c: Remove.
* cpuuse/tswitch.c: Remove.
* .cvsignore: Remove.
* ChangeLog: Remove.
* Makefile.am: Remove.
* README: Remove.
* configure.ac: Remove.
* libtests.am: Remove.
* malloctest/.cvsignore: Remove.
* malloctest/Makefile.am: Remove.
* malloctest/init.c: Remove.
* malloctest/malloctest.scn: Remove.
* malloctest/system.h: Remove.
* malloctest/task1.c: Remove.
* monitor/.cvsignore: Remove.
* monitor/Makefile.am: Remove.
* monitor/init.c: Remove.
* monitor/system.h: Remove.
* putenvtest/.cvsignore: Remove.
* putenvtest/Makefile.am: Remove.
* putenvtest/init.c: Remove.
* rtems++/.cvsignore: Remove.
* rtems++/Init.cc: Remove.
* rtems++/Makefile.am: Remove.
* rtems++/System.h: Remove.
* rtems++/Task1.cc: Remove.
* rtems++/Task2.cc: Remove.
* rtems++/Task3.cc: Remove.
* rtems++/rtems++.doc: Remove.
* rtems++/rtems++.scn: Remove.
* rtmonuse/.cvsignore: Remove.
* rtmonuse/Makefile.am: Remove.
* rtmonuse/getall.c: Remove.
* rtmonuse/init.c: Remove.
* rtmonuse/rtmonuse.scn: Remove.
* rtmonuse/system.h: Remove.
* rtmonuse/task1.c: Remove.
* stackchk/.cvsignore: Remove.
* stackchk/Makefile.am: Remove.
* stackchk/blow.c: Remove.
* stackchk/init.c: Remove.
* stackchk/stackchk.scn: Remove.
* stackchk/system.h: Remove.
* stackchk/task1.c: Remove.
* termios/.cvsignore: Remove.
* termios/Makefile.am: Remove.
* termios/README: Remove.
* termios/init.c: Remove.
Diffstat (limited to '')
-rw-r--r-- | c/src/tests/libtests/rtems++/Task2.cc | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/c/src/tests/libtests/rtems++/Task2.cc b/c/src/tests/libtests/rtems++/Task2.cc deleted file mode 100644 index e5477a2c9c..0000000000 --- a/c/src/tests/libtests/rtems++/Task2.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* Task_2 - * - * This routine serves as a test task. Its only purpose is to generate the - * error where a semaphore is deleted while a task is waiting for it. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include "System.h" - -Task2::Task2(const char* name, - const rtems_task_priority initial_priority, - const rtems_unsigned32 stack_size) - : rtemsTask(name, initial_priority, stack_size, RTEMS_NO_PREEMPT) -{ -} - -void Task2::body(rtems_task_argument ) -{ - screen4(); - - printf("%s - destroy itself\n", name_string()); - destroy(); -} - -void Task2::screen4() -{ - rtemsEvent event; - - // block waiting for any event - rtems_event_set out; - - printf("%s - event no wait - ", name_string()); - event.receive(RTEMS_SIGNAL_0, out, 0, rtemsEvent::no_wait); - printf("%s\n", event.last_status_string()); - - printf("%s - event 5 secs timeout - ", name_string()); fflush(stdout); - event.receive(RTEMS_SIGNAL_0, out, 5000000); - printf("%s\n", event.last_status_string()); - - // send using task id - printf("%s - event wait forever for signal 0 from TA1 ....\n", name_string()); - event.receive(RTEMS_SIGNAL_0, out); - printf("%s - %s, signals out are 0x%08X\n", name_string(), event.last_status_string(), out); - - // send using task object reference - printf("%s - event wait forever for signal 0 from TA1 ....\n", name_string()); - event.receive(RTEMS_SIGNAL_0, out); - printf("%s - %s, signals out are 0x%08X\n", name_string(), event.last_status_string(), out); - - printf("%s - event wait forever for signal 31 from TA1 ....\n", name_string()); - event.receive(RTEMS_SIGNAL_31, out); - printf("%s - %s, signals out are 0x%08X\n", name_string(), event.last_status_string(), out); - - printf("%s - event wait forever for signal 0 and 31 from TA1 ....\n", name_string()); - event.receive(RTEMS_SIGNAL_0 | RTEMS_SIGNAL_31, out, 0, rtemsEvent::wait, rtemsEvent::all); - printf("%s - %s, signals out are 0x%08X\n", name_string(), event.last_status_string(), out); - - printf("%s - send event signal 1 - ", name_string()); - event.send(RTEMS_SIGNAL_1); - printf("%s\n", event.last_status_string()); - - printf("%s - event wait forever for signal 1 from TA2 - ", name_string()); - event.receive(RTEMS_SIGNAL_1, out, 0, rtemsEvent::wait, rtemsEvent::all); - printf("%s, signals out are 0x%08X\n", event.last_status_string(), out); -} - - |