Friday, March 20, 2009

Event driven design

The way I am going to communicate is with events. I desperately hope nothing gets weird with thread management in JNI.
The property change stuff was easy, but I still don't have a mechanism for methods called from Java to post events back to the caller. The trick is going to be to create a Java object that C++ can grok. It looks like jInvoke only spares me half the pain of JNI.

Then there are threading issues. I think I may need my own event queue, I don't know if I can use the ones built into Java...

No comments:

Post a Comment