I'm writing a library (which is not thread-safe) for mIRC and I want to be able to cancel calls made with $dllcall.

What is the best strategy? I've added a routine that sends a SIGINT and replaced the handler of this signal so that it sets a global variable that makes some loop break. I'm not very comfortable with this solution, though.

Any suggestions?

Thanks.


Who will trade his karma for my kingdom?