Overview

The RoseMeshThreadMonitor class acts as a central point of contact for worker threads that perfom meshing. The worker threads periodically poll the isCanceled function of the monitor, and if it returns true, then the worker should clean up and return as quickly as possible. This is an abstract base class and subclasses, such as RoseMeshJobMgr provide the methods for initiating cancellation.

isCanceled()

virtual int isCanceled() = 0;

The isCanceled() function must be overridden by subtypes and should return true (non-zero) when worker threads should stop work.