Skip to content
Snippets Groups Projects
Commit ebb26986 authored by Federico's avatar Federico
Browse files

Fixed a bug in Thread::create() causing a crash when the heap is full

parent 3560b1fa
Branches
No related tags found
No related merge requests found
Changelog for Miosix np embedded OS
- Fixed a bug in Thread::create() causing a crash when the heap is full.
- Changed PROGRAM_CMDLINE for stm32vldiscovery from vsprog to stm32flash
- Unified the CMSIS directories in the various subdirectories of arch into
one CMSIS, in order to reduce the amount of code duplication and to avoid
......
......@@ -299,6 +299,7 @@ Thread *Thread::create(void *(*startfunc)(void *), unsigned int stacksize,
}
Thread *thread=doCreate(startfunc,stacksize,argv,options,false);
if(thread==NULL) return NULL;
//Add thread to thread list
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment