Skip to content

Fatal error handler in return from thread #7

@leonpollak

Description

@leonpollak

Hello, Fabian...:-)
In the source of the thread.cpp file, the wrapper function has:
// Returning from a thread is a fatal error, nothing more to
// do here than call the fatal error handler.
rtos::FailureHandler::fatal(rtos::FailureCode::returnFromThread());
Please, can you explain what is the reason for this approach? What is so criminal in returning from a thread?
BTW, the RTEMS API even has the task restart possibility.
Thank you for the clarification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions