source: rtems/testsuites/psxtests/psx09/system.h @ 9a4eca5

5
Last change on this file since 9a4eca5 was 48b04fc3, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/16 at 04:28:03

posix: Avoid Giant lock for mutexes

Delete _POSIX_Mutex_Get(). Use _POSIX_Mutex_Get_interrupt_disable()
instead.

Update #2555.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14/* functions */
15
16#include <pmacros.h>
17
18void *POSIX_Init(
19  void *argument
20);
21
22void *Task_1(
23  void *argument
24);
25
26void *Task_2(
27  void *argument
28);
29
30/* configuration information */
31
32#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
33#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
34
35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
36
37#define CONFIGURE_MAXIMUM_POSIX_THREADS   2
38#define CONFIGURE_MAXIMUM_POSIX_KEYS     10
39#define CONFIGURE_MAXIMUM_POSIX_MUTEXES  10
40
41#define CONFIGURE_POSIX_INIT_THREAD_TABLE
42
43#include <rtems/confdefs.h>
44
45/* global variables */
46
47#ifdef CONFIGURE_INIT
48#define TEST_EXTERN
49#else
50#define TEST_EXTERN extern
51#endif
52
53TEST_EXTERN pthread_t        Init_id;
54TEST_EXTERN pthread_mutex_t  Mutex_id;
55
56/* end of include file */
Note: See TracBrowser for help on using the repository browser.