Skip to content

Commit

Permalink
semaphore: hide ERROR_TOO_MANY_POSTS and ERROR_ALREADY_POSTED errors
Browse files Browse the repository at this point in the history
They are not real errors because they means posted.

    modified:   thread/semaphore.c
  • Loading branch information
komh committed Jan 9, 2023
1 parent 88a13e5 commit a86ca24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thread/semaphore.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ int os2compat_sem_post( os2compat_sem_t *sem )
sem->count++;

rc = DosPostEventSem(sem->hev);
if( rc == ERROR_TOO_MANY_POSTS || rc == ERROR_ALREADY_POSTED )
rc = NO_ERROR;
}

DosReleaseMutexSem(sem->hmtxCount);
Expand Down

0 comments on commit a86ca24

Please sign in to comment.