Ignore:
Timestamp:
Feb 21, 2012, 11:56:51 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8d8f363
Parents:
6903c7cd
git-author:
Sebastian Huber <sebastian.huber@…> (02/21/12 11:56:51)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/23/12 10:16:09)
Message:

PR 2026/filesystem - Fix semaphore attributes

Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a
mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/rfs/rtems-rfs-mutex.c

    r6903c7cd ra4097fdb  
    2525/**
    2626 * RTEMS_RFS Mutex Attributes
    27  *
    28  * @warning Do not configure as inherit priority. If a driver is in the driver
    29  *          initialisation table this locked semaphore will have the IDLE task
    30  *          as the holder and a blocking task will raise the priority of the
    31  *          IDLE task which can cause unsual side effects like not work.
    3227 */
    3328#define RTEMS_RFS_MUTEX_ATTRIBS \
    34   (RTEMS_PRIORITY | RTEMS_SIMPLE_BINARY_SEMAPHORE | \
    35    RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
     29  (RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | \
     30   RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
    3631#endif
    3732
Note: See TracChangeset for help on using the changeset viewer.