mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
drvmgr: Really fix API mutex usage
This commit is contained in:
1 parent
905d7fa3a2
commit
f4794b60f6
1 file changed
+2
-2
@@ -13,14 +13,14 @@
|
||||
|
||||
void _DRV_Manager_Lock( void )
|
||||
{
|
||||
if ( !_System_state_Is_before_multitasking( _System_state_Get() ) ) {
|
||||
if ( !_System_state_Is_before_initialization( _System_state_Get() ) ) {
|
||||
_API_Mutex_Lock( &drvmgr.lock );
|
||||
}
|
||||
}
|
||||
|
||||
void _DRV_Manager_Unlock(void)
|
||||
{
|
||||
if ( !_System_state_Is_before_multitasking( _System_state_Get() ) ) {
|
||||
if ( !_System_state_Is_before_initialization( _System_state_Get() ) ) {
|
||||
_API_Mutex_Unlock( &drvmgr.lock );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user