[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there any way to awake ASR?
- Date: Sun, 07 Feb 1999 13:03:21 +0200
- From: leonp at plris.com (Pollak Leon)
- Subject: Is there any way to awake ASR?
Hello to RTEMS gurus.
Let's suppose, for example, that there is one task responsible for writing
to HD file. The task starts with file opening, then enters endless loop in
which it waits at message queue to receive message and stores it to HD (no
system driver yet). Normally, at the end of the mission, the file must be
closed and may be some other actions undertaken.
The event END OF DATA (end of mission) is detected in other tasks which
must notify the HD task of this somehow to cause it to exit endless loop.
I know that the simplest way to do this is to send EOF message and analize
it in HD task, but this method IMHO is not so "structural" - the external
task must know EOF message format, the corresponding queue ID, etc.
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.
I shall be thankful for any ideas.
Thanks.
Leon Pollak
leonp at plris.com