-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use one thread for all callbacks #125
Comments
Wow, coincidence on the timing. I've been using this library for 6 months and just realised I'm seeing the same thing and was about to raise an issue. |
As far as I can see, this issue should be moved to https://github.com/jnr/jffi It looks like |
Yes this should be a jffi issue most likely, and I agree it should be fixed. We should do a round of patches. The unfortunate part of having to change the C code is rebuilding the native library for all platforms, so this fix would require a pretty major release. |
Any chance of getting a fix for this? |
I have simple library with API:
Each callback call create a new java thread to handle the callback. How I can handle callback in fixed/single thread?
In JNA can use CallbackThreadInitializer:
What analogy in JNR?
Thank!
The text was updated successfully, but these errors were encountered: