source: rtems/testsuites/psxtests/psx09/system.h @ 48b04fc3

5
Last change on this file since 48b04fc3 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
RevLine 
[7e811af1]1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
[08311cc3]6 *  COPYRIGHT (c) 1989-1999.
[7e811af1]7 *  On-Line Applications Research Corporation (OAR).
8 *
[98e4ebf5]9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[c499856]11 *  http://www.rtems.org/license/LICENSE.
[7e811af1]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
[df49c60]32#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
33#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
[7e811af1]34
[698c2e50]35#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
36
[48b04fc3]37#define CONFIGURE_MAXIMUM_POSIX_THREADS   2
[7e811af1]38#define CONFIGURE_MAXIMUM_POSIX_KEYS     10
39#define CONFIGURE_MAXIMUM_POSIX_MUTEXES  10
40
[df49c60]41#define CONFIGURE_POSIX_INIT_THREAD_TABLE
42
[80450c7]43#include <rtems/confdefs.h>
[7e811af1]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.