9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #ifndef SHARE_VM_UTILITIES_YIELDINGWORKGROUP_HPP 26 #define SHARE_VM_UTILITIES_YIELDINGWORKGROUP_HPP 27 28 #include "utilities/macros.hpp" 29 #if INCLUDE_ALL_GCS 30 #include "utilities/workgroup.hpp" 31 #endif // INCLUDE_ALL_GCS 32 33 34 // Forward declarations 35 class YieldingFlexibleWorkGang; 36 37 // Status of tasks 38 enum Status { 39 INACTIVE, 40 ACTIVE, 41 YIELDING, 42 YIELDED, 43 ABORTING, 44 ABORTED, 45 COMPLETING, 46 COMPLETED 47 }; 48 49 // Class YieldingFlexibleGangWorker: 50 // Several instances of this class run in parallel as workers for a gang. 51 class YieldingFlexibleGangWorker: public GangWorker { 52 public: | 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #ifndef SHARE_VM_UTILITIES_YIELDINGWORKGROUP_HPP 26 #define SHARE_VM_UTILITIES_YIELDINGWORKGROUP_HPP 27 28 #include "utilities/macros.hpp" 29 #include "utilities/workgroup.hpp" 30 31 // Forward declarations 32 class YieldingFlexibleWorkGang; 33 34 // Status of tasks 35 enum Status { 36 INACTIVE, 37 ACTIVE, 38 YIELDING, 39 YIELDED, 40 ABORTING, 41 ABORTED, 42 COMPLETING, 43 COMPLETED 44 }; 45 46 // Class YieldingFlexibleGangWorker: 47 // Several instances of this class run in parallel as workers for a gang. 48 class YieldingFlexibleGangWorker: public GangWorker { 49 public: |