Skip to content

win_thread.c timed wait always return 0 #990

@xingkaiyu

Description

@xingkaiyu

hi~
I am using thread with wasm and wamr on windows. And I find that pthread_cond_timedwait always return 0 no matter timed out or realy success.
I think we can return the wait result in os_cond_wait_internal. I tryed it and it works ok.
Here is my patch.
win_thread-patch.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