test if task is _not_ suspended

hwulf at et-inf.fho-emden.de hwulf at et-inf.fho-emden.de
Fri Apr 13 10:25:23 UTC 2007


I wanted to test, if a task is currently _not_ suspended.

In the C user's guide, the return codes of rtems_task_is_suspended() are:

RTEMS_SUCCESSFUL - task is suspended
RTEMS_ALREADY_SUSPENDED - task is not suspended
RTEMS_INVALID_ID - task id invalid
RTEMS_ILLEGAL_ON_REMOTE_OBJECT - not supported on remote tasks

But I think the return values are somewhat confusing.
It seems, that the return value is RTEMS_SUCCESSFUL when a task is  
already suspended. But then, what's RTEMS_ALREADY_SUSPENDED used for?  
The name of the return value gives the impression that it's used for  
the same reason, but the description says rather the contrary.

Is there a return value to test if a test is _not_suspended? Which one?

Thank you very much in advance.
Kind regards,

More information about the users mailing list