How to reset semaphore
osv at javad.com
Thu Apr 19 17:26:08 UTC 2007
Leon Pollak <leonp at plris.com> writes:
> Hello, all.
> I searched the UM and did not find something suitable.
> I have a counting semaphore. At some point I have the situation when I need to
> reset the counter (to zero).
> How can I do this if I do not want to delete it (too complicated - its ID is
> known and used by the whole system)?
while(rtems_semaphore_obtain(id, RTEMS_NO_WAIT, 0) == RTEMS_SUCCESSFUL)
More information about the users