Skip to content

Commit

Permalink
Revert "RTOS2/RTX5: Enhanced ThreadTerminate to not allow termination…
Browse files Browse the repository at this point in the history
… of idle or timer threads."

This reverts commit 7c4c592.
  • Loading branch information
JonatanAntoni committed Oct 18, 2017
1 parent 2cd339b commit 6792687
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions CMSIS/RTOS2/RTX/Source/rtx_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,13 +1194,6 @@ osStatus_t svcRtxThreadTerminate (osThreadId_t thread_id) {
return osErrorParameter;
}

// Don't allow termination of timer or idle thread
if ((thread == osRtxInfo.timer.thread) ||
(thread == osRtxInfo.thread.idle)) {
EvrRtxThreadError(thread, osErrorParameter);
return osErrorResource;
}

// Check object state
switch (thread->state & osRtxThreadStateMask) {
case osRtxThreadRunning:
Expand Down

0 comments on commit 6792687

Please sign in to comment.