Skip to content

wait locks deepsleep, Thread::wait does not #7154

@janjongboom

Description

@janjongboom

Description

In our docs (https://os.mbed.com/docs/v5.7/reference/sleep-manager.html) we state that when you call wait we automatically put the device in deep sleep. This is not true. For some reason wait() blocks deepsleep, but if you change it to Thread::wait it does not. Why?! This is super confusing. Why would there be two different behaviors when pausing a thread?

Then on non-RTOS mode wait actually can do deepsleep, so that makes it even more confusing.

All wait should behave equally and should not block deepsleep.

Issue request type

[ ] Question
[X] Enhancement
[ ] Bug

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