Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

What I have tried:

Googling, other forums, asked around to Java coders
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900