I have a Java app from which I am calling the functions in a (Delphi) DLL. I'm using JNA to do so.
The DLL, once initialised, starts it's own thread and monitors the status of a system. Control is returned to the java app in it's own (Main) thread.
What options are there to signal the Java App from my DLL thread, in a thread-safe manner, that an event has occurred? If this were a Windows app I'd probably post a window message or thread message.
What choices do I have in this case, apart from polling?
I've looked around for similar queries but could not find answers to my question. Thanks in advance.