[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there any way to awake ASR?
- Date: Tue, 9 Feb 1999 08:14:40 -0600 (CST)
- From: joel at OARcorp.com (joel at OARcorp.com)
- Subject: Is there any way to awake ASR?
On Sun, 7 Feb 1999, Pollak Leon wrote:
> The fines way I thought will be to use ASR mechanism, but as I
> understood from RTEMS UM it will not work because the HD task will
> continue to wait at message queue forever.
Yes. Your understanding is correct. Sending a signal does not unblock a
task under any condition. A POSIX signal unblocks some calls but not
those in the Classic API such as message_queue_receive.
The EOF message idea is good but you missed on the encapsulation part.
All interactions with the task should be through routines that hide the
actual mechanics of the queue anyway so you should have public interface
routines like: Write_data(), Close_file(), or whatever. If you changed
from a message queue to another mechanism or ending up with multiple
server tasks or any other implementation change, the public API would not
have to change.
Summary. ASR's work like you think and won't solve this one.