drvmgr: Really fix API mutex usage

This commit is contained in:
Sebastian Huber
2018-04-24 15:40:07 +02:00
parent 905d7fa3a2
commit f4794b60f6

View File

@@ -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 );
}
}