Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error handling when thread cannot be created
Update the Thread::start function to gracefully handle the failed creation of a thread when there are no TCBs left. This patch does the following: 1. Set memory handles to NULL after free to prevent double free 2. Post to the release semaphore so anything that tries to join this thread will join immediately 3. Remove dead return path since the new operator should never return NULL (it should trap instead)
- Loading branch information