[zeromq-dev] preparing bindings for 2.1 release?
gonzalo diethelm
gdiethelm at dcv.cl
Fri Oct 1 19:52:46 CEST 2010
> I am not sure whether Java can make any use of native file
descriptors.
> Can it? If not, there's no point in exposing FD to the user.
>
> An option would be to wrap the retrieved FD into native Java
descriptor
> (if such a thing exists) but that would probably be pretty non-trivial
> to implement.
You are right, this looks useless. It also seems harmless; I will leave
it there for now and ask for more input from Java experts in this list.
> One impact I can think of is that zmq_term can now block. Given that
> it's called from GC thread in Java... well, I am not sure what happens
> if GC thread is blocked, but it doesn't sounds scary.
>
> Possible solution would be to add term method to the context so that
> user would be able to terminate the conxtext explicitly and thus block
> in application thread rather than in GC thread.
The Context class has a public term() method that does exactly this.
--
Gonzalo Diethelm
More information about the zeromq-dev
mailing list