SDK question: getting text messages from main thread into the dsp perform routine?

Iain Duncan's icon

Hi, an SDK question in case anyone has done this or can point me at resources before I spend time barking up the wrong tree or reinventing things I don't need to. :-)

I would like code in my dsp perform routine to safely get text messages that originated in the main or scheduler thread. The messages could be long, and there could be more than one to consume per DSP pass. I'm assuming I'm need to consume them from some kind of thread-safe buffer. (I'd also like to go the other way eventually). Any tips?

thanks!