equal
deleted
inserted
replaced
197 |
197 |
198 /** |
198 /** |
199 * Disables the current thread for thread scheduling purposes, for up to |
199 * Disables the current thread for thread scheduling purposes, for up to |
200 * the specified waiting time, unless the permit is available. |
200 * the specified waiting time, unless the permit is available. |
201 * |
201 * |
202 * <p>If the permit is available then it is consumed and the call |
202 * <p>If the specified waiting time is zero or negative, the |
203 * returns immediately; otherwise the current thread becomes disabled |
203 * method does nothing. Otherwise, if the permit is available then |
204 * for thread scheduling purposes and lies dormant until one of four |
204 * it is consumed and the call returns immediately; otherwise the |
205 * things happens: |
205 * current thread becomes disabled for thread scheduling purposes |
|
206 * and lies dormant until one of four things happens: |
206 * |
207 * |
207 * <ul> |
208 * <ul> |
208 * <li>Some other thread invokes {@link #unpark unpark} with the |
209 * <li>Some other thread invokes {@link #unpark unpark} with the |
209 * current thread as the target; or |
210 * current thread as the target; or |
210 * |
211 * |
325 |
326 |
326 /** |
327 /** |
327 * Disables the current thread for thread scheduling purposes, for up to |
328 * Disables the current thread for thread scheduling purposes, for up to |
328 * the specified waiting time, unless the permit is available. |
329 * the specified waiting time, unless the permit is available. |
329 * |
330 * |
330 * <p>If the permit is available then it is consumed and the call |
331 * <p>If the specified waiting time is zero or negative, the |
331 * returns immediately; otherwise the current thread becomes disabled |
332 * method does nothing. Otherwise, if the permit is available then |
332 * for thread scheduling purposes and lies dormant until one of four |
333 * it is consumed and the call returns immediately; otherwise the |
333 * things happens: |
334 * current thread becomes disabled for thread scheduling purposes |
|
335 * and lies dormant until one of four things happens: |
334 * |
336 * |
335 * <ul> |
337 * <ul> |
336 * <li>Some other thread invokes {@link #unpark unpark} with the |
338 * <li>Some other thread invokes {@link #unpark unpark} with the |
337 * current thread as the target; or |
339 * current thread as the target; or |
338 * |
340 * |