Ignore:
Timestamp:
Dec 4, 2017, 7:48:10 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
bc5b56a
Parents:
61bd8cd6
git-author:
Sebastian Huber <sebastian.huber@…> (12/04/17 07:48:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/06/17 06:13:04)
Message:

drvmgr: Use API mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdrvmgr/drvmgr_internal.h

    r61bd8cd6 r98b52e3  
    88 */
    99
     10#include <rtems/score/apimutex.h>
     11
    1012/*  Structure hold all information the driver manager needs to know of. Used
    1113 *  internally by Driver Manager routines.
     
    1618
    1719        /* Device tree Lock */
    18         rtems_id                lock;
     20        API_Mutex_Control       lock;
    1921
    2022        /* The first device - The root device and it's driver */
     
    5052extern void _DRV_Manager_Lock(void);
    5153extern void _DRV_Manager_Unlock(void);
    52 extern int _DRV_Manager_Init_Lock(void);
    5354
    5455/* The best solution is to implement the locking with a RW lock, however there
     
    5758 */
    5859#if defined(DRVMGR_USE_LOCKS) && (DRVMGR_USE_LOCKS == 1)
    59  #define DRVMGR_LOCK_INIT() _DRV_Manager_Init_Lock()
    6060 #define DRVMGR_LOCK_WRITE() _DRV_Manager_Lock()
    6161 #define DRVMGR_LOCK_READ() _DRV_Manager_Lock()
     
    6363#else
    6464 /* no locking */
    65  #define DRVMGR_LOCK_INIT()
    6665 #define DRVMGR_LOCK_WRITE()
    6766 #define DRVMGR_LOCK_READ()
Note: See TracChangeset for help on using the changeset viewer.