DoneTimedGetLoops.java revision 6144
6144N/A * Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved. 6144N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6144N/A * This code is free software; you can redistribute it and/or modify it 6144N/A * under the terms of the GNU General Public License version 2 only, as 6144N/A * published by the Free Software Foundation. 6144N/A * This code is distributed in the hope that it will be useful, but WITHOUT 6144N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 6144N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 6144N/A * version 2 for more details (a copy is included in the LICENSE file that 6144N/A * You should have received a copy of the GNU General Public License version 6144N/A * 2 along with this work; if not, write to the Free Software Foundation, 6144N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 6144N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 6144N/A * or visit www.oracle.com if you need additional information or have any 6144N/A * Written by Martin Buchholz with assistance from members of JCP JSR-166 6144N/A * Expert Group and released to the public domain, as explained at 6144N/A * @run main DoneTimedGetLoops 300 6144N/A * @summary isDone returning true guarantees that subsequent timed get 6144N/A * will never throw TimeoutException. 6144N/A /** Polls for quitting time. */ 6144N/A /** Polls occasionally for quitting time. */ 6144N/A //--------------------- Infrastructure ---------------------------