4.115
Last change
on this file since 22788bc was
22788bc,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/23/15 at 11:01:05
|
score: _Thread_queue_Extract()
Remove thread queue parameter from _Thread_queue_Extract() since the
current thread queue is stored in the thread control block.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2009. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.org/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifdef HAVE_CONFIG_H |
---|
11 | #include "config.h" |
---|
12 | #endif |
---|
13 | |
---|
14 | #include <tmacros.h> |
---|
15 | |
---|
16 | #include <sys/types.h> |
---|
17 | #include <rtems/score/threadqimpl.h> |
---|
18 | |
---|
19 | const char rtems_test_name[] = "SPTHREADQ 1"; |
---|
20 | |
---|
21 | static rtems_task Init( |
---|
22 | rtems_task_argument ignored |
---|
23 | ) |
---|
24 | { |
---|
25 | TEST_BEGIN(); |
---|
26 | |
---|
27 | puts( "Init - _Thread_queue_Extract - thread not blocked on a thread queue" ); |
---|
28 | _Thread_Disable_dispatch(); |
---|
29 | _Thread_queue_Extract( _Thread_Executing ); |
---|
30 | _Thread_Enable_dispatch(); |
---|
31 | /* is there more to check? */ |
---|
32 | |
---|
33 | TEST_END(); |
---|
34 | rtems_test_exit(0); |
---|
35 | } |
---|
36 | |
---|
37 | /* configuration information */ |
---|
38 | |
---|
39 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
40 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
41 | |
---|
42 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
43 | #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION |
---|
44 | |
---|
45 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
46 | |
---|
47 | #define CONFIGURE_INIT |
---|
48 | #include <rtems/confdefs.h> |
---|
49 | |
---|
50 | /* global variables */ |
---|
Note: See
TracBrowser
for help on using the repository browser.