lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <>
Subject Re: Build failed in Jenkins: Lucene-Solr-trunk-Linux-Java7-64 #73
Date Mon, 21 May 2012 09:12:00 GMT
> pretty much like a waiting on an object just not waiting on a Java
> Object. In short it has pretty much the same semantics but you need to
> wake up "parked" threads with an Unsafe#unpark call.

     * Block current thread, returning when a balancing
     * <tt>unpark</tt> occurs, or a balancing <tt>unpark</tt> has
     * already occurred, or the thread is interrupted, or, if not
     * absolute and time is not zero, the given time nanoseconds have
     * elapsed, or if absolute, the given deadline in milliseconds
     * since Epoch has passed, or spuriously (i.e., returning for no
     * "reason"). Note: This operation is in the Unsafe class only
     * because <tt>unpark</tt> is, so it would be strange to place it
     * elsewhere.
    public native void park(boolean isAbsolute, long time);

I love the 'or' sequence ending in "or for no reason" :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message