rtems_semaphore_delete directive RTEMS_RESOURCE_IN_USE status code
Joel Sherrill
joel.sherrill at OARcorp.com
Mon Oct 1 20:56:53 UTC 2012
On 10/1/2012 2:45 PM, Andrei Dimitrief-Jianu wrote:
> Hello,
>
> Could someone clarify for me when rtems_semaphore_delete directive
> would return RTEMS_RESOURCE_IN_USE status code?
>
> My guess is that RTEMS_RESOURCE_IN_USE is returned if there are tasks
> waiting to acquire the semaphore, but the API
> document also says that:
>
> "All tasks blocked waiting to acquire the semaphore will be readied
> and returned a status code which
> indicates that the semaphore was deleted."
I think that that error is only returned when you have created it as a
binary semaphore
and it is locked.
And it looks like the documentation could use clarification. :(
>
> Regards,
> Andrei.
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list