Skip to content

sleep in sub thread cause crash in android or linux #985

@xingkaiyu

Description

@xingkaiyu

hi~
I want to call sleep or nanosleep in my code.
I find that when I call sleep or nanosleep in main thread it is ok but crash in sub thread.
I also try in windows. They work find both in main and sub thread....

By the way, I want to know why usleep not work in wasm app.

I attached my simple code.
wasm_source.zip

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