return status of std::condition_variable wait_for is not always as expected
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp, wasm
- Domain
- operating-systems
Research direction
Start with the reported std::condition_variable::wait_for call, m_wait.wait_for(lock, ms), and compare its return status in native C++ and WebAssembly. Reproduce the periodic thread-and-timer behavior, then read the Threads and Atomics proposal sections covering condition-variable waits. Done means determining whether the no_timeout result violates the expected semantics and documenting a minimal reproduction or confirmed specification issue.
Written by the indexing model from the issue text.
Description
My application making use of a thread + timer to perform periodical operations in the background stopped working as expected when ported from native C++ (gnu c++) to web assembly.
Simply printing the status returned by
status = m_wait.wait_for(lock, ms);
i realised that from time to time it was 0 (no_timeout) when I expected a timeout.
Is that a possible bug?
Thanks
- Dominant language
- WebAssembly
- Stars
- 767
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from WebAssembly/threads
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
WebAssembly/threads#254 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
WebAssembly/threads#253 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
WebAssembly/threads#245 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
WebAssembly/threads#240 ·
-
Branch renaming Open
Difficulty 1/5 Under an hour Newbie friendliness 20/100
WebAssembly/threads#237 ·
All issues in WebAssembly/threads
Similar issues
-
Bug Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johnsonjh/emu2-cpm86#61 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
arduino/arduino-app-lab#49 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zephyrproject-rtos/zephyr#120011 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
ValveSoftware/Proton#10167 ·