Skip to content

Commit

Permalink
HOTFIX: Correct issues shown in Travis CI tests
Browse files Browse the repository at this point in the history
- Correct merge issue with regards to the OS_Global_Unlock function
- Correct use of OS_TaskGetId() - need to use Impl variant here.
  • Loading branch information
jphickey committed May 28, 2020
1 parent f768a43 commit ce45c31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/shared/src/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ void OS_Lock_Global(uint32 idtype)
if (idtype < OS_OBJECT_TYPE_USER)
{
objtype = &OS_objtype_state[idtype];
self_task_id = OS_TaskGetId();
self_task_id = OS_TaskGetId_Impl();

return_code = OS_Lock_Global_Impl(idtype);
if (return_code == OS_SUCCESS)
Expand Down Expand Up @@ -608,7 +608,7 @@ void OS_Unlock_Global(uint32 idtype)
if (idtype < OS_OBJECT_TYPE_USER)
{
objtype = &OS_objtype_state[idtype];
self_task_id = OS_TaskGetId();
self_task_id = OS_TaskGetId_Impl();

/*
* Un-track ownership of this table. It should only be owned by one
Expand Down Expand Up @@ -1209,7 +1209,7 @@ int32 OS_GetResourceName(uint32 object_id, char *buffer, uint32 buffer_size)
memcpy(buffer, record->name_entry, name_len);
buffer[name_len] = 0;
}
OS_Unlock_Global_Impl(idtype);
OS_Unlock_Global(idtype);
}

return return_code;
Expand Down

0 comments on commit ce45c31

Please sign in to comment.