void function ( Object arg0 , long arg1 ) { Thread loc0 = Thread . currentThread ( ) ; setBlocker ( loc0 , arg0 ) ; unsafe . park ( true , arg1 ) ; setBlocker ( loc0 , null ) ; }
disables the current thread for thread scheduling purposes , until the specified deadline , unless the permit is available . if the permit is available then it is consumed and the call returns immediately ; otherwise the current thread becomes disabled for thread scheduling purposes and lies dormant until one of four things happens : some other thread invokes #unpark unpark with thecurrent thread as the target ; or some other thread @linkplain thread #interrupt interrupts thecurrent thread ; or the specified deadline passes ; or the call spuriously that is , for no reason returns . this method does not report which of these caused the method to return . callers should re-check the conditions which caused the thread to park in the first place . callers may also determine , for example , the interrupt status of the thread , or the current time upon return . concode_field_sep Unsafe unsafe concode_elem_sep long parkBlockerOffset concode_field_sep Object getBlocker concode_elem_sep void unpark concode_elem_sep void parkNanos concode_elem_sep void parkNanos concode_elem_sep void park concode_elem_sep void park concode_elem_sep void setBlocker