4#include "threadsafe/PointerStorage.h"
23 using index_type = aithreadsafe::VoidPointerStorage::index_type;
24 static constexpr index_type s_aborted = std::numeric_limits<index_type>::max();
27 aithreadsafe::PointerStorage<AIStatefulTask> m_tasks;
28 bool m_aborted{
false};
35 if (AI_UNLIKELY(m_aborted))
40 return m_tasks.insert(task);
43 void remove(index_type index)
46 ASSERT(index != s_aborted);
Declaration of base class AIStatefulTask.
Definition: AIStatefulTask.h:96
Definition: RunningTasksTracker.h:21
void abort()
Definition: AIStatefulTask.cxx:1690
Tasks defined by the library project are put into this namespace.
Definition: AIStatefulTask.h:857