PieterWinter
Programmer
From Java I'm considering using a C-library that uses thread pools, mutexes, conditional semaphores and the likes. Using JNI I can access C-functions from Java.
I need to be able to let the threads (from C) callback to the Java code (e.g. when some library-internal event happens, such as incoming message). Is this possible? Any help or pointer to (online) documentation is appreciated.
btw. I looked through the JNI stuff from Sun, there was "a" remark on native threads, but did not point me in the right direction...
I need to be able to let the threads (from C) callback to the Java code (e.g. when some library-internal event happens, such as incoming message). Is this possible? Any help or pointer to (online) documentation is appreciated.
btw. I looked through the JNI stuff from Sun, there was "a" remark on native threads, but did not point me in the right direction...