[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test if task is _not_ suspended
- Date: Fri, 13 Apr 2007 12:25:23 +0200
- From: hwulf at et-inf.fho-emden.de (hwulf at et-inf.fho-emden.de)
- Subject: test if task is _not_ suspended
Hi,
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,
Hank