please have a look at http://cvs.sourceforge.net/viewcvs.py/midishare/midishare/src/common/Headers... The people at Grame have done a wonderful implementation of a fifo using two lifos, now using only CAS and no more CAS2. This implementation has the further advantage that no additional dynamic allocation is necessary. The cell structure used for the lifos/fifos can take additional data.
thanks for the hint ...
i was following the paper, written by the guys from grame ... haven't had a look at the midishare source code, though ... i'll look into it and try to adapt the fifos accordingly ...
cheers ... tim