Skip to content

Commit

Permalink
Update nasa#1083, correct comment in timebase callback
Browse files Browse the repository at this point in the history
Per review feedback, removes comment that was stale and no longer valid,
and describe why only POSIX_OS is enabled here on this check.
  • Loading branch information
jphickey committed Jul 7, 2021
1 parent f4eaa7c commit a8db3cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/time-base-api-test/time-base-api-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ static uint32 UT_TimerSync(osal_id_t timer_id)
{
/*
* Calls to time base configuration from the context of a sync function
* should be rejected with OS_ERR_INCORRECT_OBJ_STATE. However because
* UtAssert is not fully thread-safe, this does not assert here, it just
* calls the various functions on the first time through and stores the
* result, which is checked/asserted in the main task.
* should be rejected with OS_ERR_INCORRECT_OBJ_STATE. Note that only the
* POSIX provides the mechanism for this error check to actually work - On
* other platforms the error checking may not be possible, depending on how
* OS_TaskGetId_Impl() responds when called from a non-OSAL task.
*/
#ifdef _POSIX_OS_
if (NumSyncs == 0)
Expand Down

0 comments on commit a8db3cd

Please sign in to comment.