The following works, but I am not sure of its performance impact and I worry that this is just an abuse of functionality meant for something else.
Periodically execute the following in the LibraryLink function (the same way you would call AbortQ()
)
MLINK lp = libData->getMathLink(libData);
libData->processMathLink(lp);
Is this the right way to do it?