RTEMS now allows locked simple binary semaphores to be deleted.

This commit is contained in:
W. Eric Norum
2000-03-26 02:01:26 +00:00
parent e1f69a21e9
commit ae4890e59a
-4
View File
@@ -72,10 +72,6 @@ semBinaryDestroy(semBinaryId id)
rtems_status_code sc;
sc = rtems_semaphore_delete (sid);
if (sc == RTEMS_RESOURCE_IN_USE) {
semBinaryGive (id);
sc = rtems_semaphore_delete (sid);
}
if (sc != RTEMS_SUCCESSFUL)
errlogPrintf ("Can't destroy semaphore: %s\n", rtems_status_text (sc));
}