17 #if !defined(OPENNURBS_TERMINATOR_INC_) 18 #define OPENNURBS_TERMINATOR_INC_ 66 void SetTerminationQueryCallbackFunction(
67 bool (*callback_function)(ON__UINT_PTR context),
68 ON__UINT_PTR callback_context
71 ON__UINT_PTR CallbackFunction()
const;
72 ON__UINT_PTR CallbackContext()
const;
75 ON__UINT_PTR thread_id
78 ON__UINT_PTR ThreadId()
const;
85 void RequestTermination();
100 static void RequestTermination(
125 static bool TerminationRequested(
ON_Terminator* terminator);
146 static bool TerminationRequestedExpert(
148 ON__UINT64 callback_delta
152 bool (*m_callback_function)(ON__UINT_PTR) =
nullptr;
153 ON__UINT_PTR m_callback_context = 0;
154 ON__UINT64 m_previous_query_clock = 0;
155 bool m_bTerminationRequested =
false;
157 ON__UINT_PTR m_thread_id = 0;
158 ON__UINT64 m_reserved2[2];
Definition: opennurbs_terminator.h:20