Hi
It's good to work with pointers, as Nick pointed out.
If that is not possilbe for any reason,
an options is to use a (pre-allocated) memory pool.
You might want to examine this library : TLSF
http://www.gii.upv.es/tlsf/
" I could allocate in the non-realtime thread and then pass memory
over in queues. "
That could be feasable.
-
E.R.