public pop: () ==> Message
pop() == ( let rtn_data = hd queue in
(
queue := tl queue; return rtn_data;
)
);
sync per push => #fin(push) - #fin(pop) < size; --ensure that there's space in the queue per pop => #fin(push) - #fin(pop) > 0; --ensure that there's data in the queue mutex(pop,push); --Only a single activation of pop at a time. --Have not testet if this sync is enough.
end MessageQueue
\end{vdm_al}
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.