source: rtems/testsuites/psxtests/psxrwlock01/main.c @ 89fc9345

5
Last change on this file since 89fc9345 was 89fc9345, checked in by Sebastian Huber <sebastian.huber@…>, on 09/21/17 at 13:42:45

posix: Implement self-contained POSIX rwlocks

POSIX rwlocks are now available in all configurations and no longer
depend on --enable-posix.

Update #2514.
Update #3115.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
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#define CONFIGURE_INIT
11
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <rtems/test.h>
17#include <bsp.h>
18#include <pmacros.h>
19
20/* forward declarations to avoid warnings */
21rtems_task Init(rtems_task_argument ignored);
22void test_main(void);
23
24rtems_task Init(
25  rtems_task_argument ignored
26)
27{
28  test_main();
29  rtems_test_exit( 0 );
30}
31
32/* configuration information */
33
34#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
35#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
36
37#define CONFIGURE_MAXIMUM_TASKS 1
38
39#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
40
41#define CONFIGURE_MAXIMUM_POSIX_THREADS 2
42
43#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
44
45#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
46#define CONFIGURE_INIT_TASK_STACK_SIZE    (RTEMS_MINIMUM_STACK_SIZE * 2)
47#define CONFIGURE_INIT_TASK_PRIORITY      2
48#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT
49
50#define CONFIGURE_EXTRA_TASK_STACKS       RTEMS_MINIMUM_STACK_SIZE
51
52#define CONFIGURE_INIT
53
54#include <rtems/confdefs.h>
55
56/* end of file */
Note: See TracBrowser for help on using the repository browser.