33 #ifndef OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED 34 #define OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED 58 void start(
const char* name =
nullptr) { (void)name; }
67 inline bool wasInterrupted(
int percent = -1) { (void)percent;
return false; }
76 inline bool wasInterrupted(T* i,
int percent = -1) {
return i && i->wasInterrupted(percent); }
86 #endif // OPENVDB_UTIL_NULL_INTERRUPTER_HAS_BEEN_INCLUDED bool wasInterrupted(int percent=-1)
Definition: NullInterrupter.h:67
void start(const char *name=nullptr)
Definition: NullInterrupter.h:58
void end()
Signal the end of an interruptible operation.
Definition: NullInterrupter.h:60
#define OPENVDB_VERSION_NAME
The version namespace name for this library version.
Definition: version.h:128
Definition: Exceptions.h:40
Dummy NOOP interrupter class defining interface.
Definition: NullInterrupter.h:52
Library and file format version numbers.
NullInterrupter()
Default constructor.
Definition: NullInterrupter.h:55
#define OPENVDB_USE_VERSION_NAMESPACE
Definition: version.h:180
bool wasInterrupted(T *i, int percent=-1)
Definition: NullInterrupter.h:76