oops: we should crash if we >MAX_THREADS, also raise max threads

This commit is contained in:
Kevin Hester
2021-02-14 15:06:49 +08:00
parent 450e877cfb
commit c55074f7fe
2 changed files with 5 additions and 3 deletions

View File

@@ -32,8 +32,10 @@ OSThread::OSThread(const char *_name, uint32_t period, ThreadController *_contro
ThreadName = _name;
if (controller)
controller->add(this);
if (controller) {
bool added = controller->add(this);
assert(added);
}
}
OSThread::~OSThread()