Changeset b1b6dd71 in rtems for cpukit/include/rtems/confdefs.h


Ignore:
Timestamp:
Dec 11, 2019, 3:45:37 PM (2 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
08bd7d3
Parents:
86c70e71
git-author:
Sebastian Huber <sebastian.huber@…> (12/11/19 15:45:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/11/19 16:45:31)
Message:

pipe: Use condition variables

Use self-contained condition variables instead of Classic API barriers.
This simplifies the implementation and configuration.

Update #3840.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/confdefs.h

    r86c70e71 rb1b6dd71  
    212212#if !defined(CONFIGURE_MAXIMUM_PIPES)
    213213  #define CONFIGURE_MAXIMUM_PIPES 0
    214 #endif
    215 
    216 /*
    217  * This specifies the number of barriers required for the configured
    218  * number of FIFOs and named pipes.
    219  */
    220 #if CONFIGURE_MAXIMUM_FIFOS > 0 || CONFIGURE_MAXIMUM_PIPES > 0
    221   #define _CONFIGURE_BARRIERS_FOR_FIFOS \
    222     (2 * (CONFIGURE_MAXIMUM_FIFOS + CONFIGURE_MAXIMUM_PIPES))
    223 #else
    224   #define _CONFIGURE_BARRIERS_FOR_FIFOS   0
    225214#endif
    226215
     
    20422031#endif
    20432032
    2044 /*
    2045  * This macro is calculated to specify the number of Classic API
    2046  * Barriers required by the application and configured capabilities.
    2047  */
    2048 #define _CONFIGURE_BARRIERS \
    2049   (CONFIGURE_MAXIMUM_BARRIERS + _CONFIGURE_BARRIERS_FOR_FIFOS)
    2050 
    20512033#ifndef CONFIGURE_MAXIMUM_USER_EXTENSIONS
    20522034  /**
     
    27382720  );
    27392721
    2740   #if _CONFIGURE_BARRIERS > 0
    2741     BARRIER_INFORMATION_DEFINE( _CONFIGURE_BARRIERS );
     2722  #if CONFIGURE_MAXIMUM_BARRIERS > 0
     2723    BARRIER_INFORMATION_DEFINE( CONFIGURE_MAXIMUM_BARRIERS );
    27422724  #endif
    27432725
Note: See TracChangeset for help on using the changeset viewer.