< prev index next >
src/share/vm/utilities/taskqueue.hpp
Print this page
rev 10706 : [backport] Make Shenandoah to use ShenandoahOWST only
@@ -607,11 +607,10 @@
// When to terminate from the termination protocol.
class TerminatorTerminator: public CHeapObj<mtInternal> {
public:
virtual bool should_exit_termination() = 0;
- virtual bool should_force_termination() { return false; }
};
// A class to aid in the termination of a set of parallel tasks using
// TaskQueueSet's for work stealing.
@@ -642,19 +641,17 @@
// The current thread has no work, and is ready to terminate if everyone
// else is. If returns "true", all threads are terminated. If returns
// "false", available work has been observed in one of the task queues,
// so the global task is not complete.
- // If force is set to true, it terminates even if there's remaining work left
virtual bool offer_termination() {
return offer_termination(NULL);
}
// As above, but it also terminates if the should_exit_termination()
// method of the terminator parameter returns true. If terminator is
// NULL, then it is ignored.
- // If force is set to true, it terminates even if there's remaining work left
bool offer_termination(TerminatorTerminator* terminator);
// Reset the terminator, so that it may be reused again.
// The caller is responsible for ensuring that this is done
// in an MT-safe manner, once the previous round of use of
< prev index next >