Re: [Sablevm-developer] java.lang.Thread.yield()
Brought to you by:
egagnon
From: Chris P. <chr...@ma...> - 2003-02-20 04:23:22
|
> > >If you look at my solution, you'll note that I suggest that we might >simply ignore the return value anyway. This is why your original code >semmed OK to me (I was assuming you had already investigated about >return values & POSIX compliance). > > Okay, I looked at your solution, but apart from the goto end:, it doesn't seem different from the fix I suggested a couple of hours ago (ignoring the JNI_OK stuff): if (sched_yield() != 0) _svmf_error_InternalError (env); whereas you have: *if* (sched_yield () != 0) { //* Should we really really throw an error on failure? Maybe we could simply ignore the return value, if no harm is implied. Suggestions are welcome. Etienne *// _svmf_error_InternalError (env); *goto* *end*; } *end*: ................ is there really a big difference? or are you mainly talking about the comment? Cheers, Chris P.S. Can you get the JNI book online? I have the JVM spec as part of the Java docs, but I take it this is something else. |