Opened 11 years ago
Closed 11 years ago
#5594 closed Bugs (fixed)
boost::shared_mutex not fully compatible with Windows CE.
| Reported by: | Owned by: | viboes | |
|---|---|---|---|
| Milestone: | Boost 1.49.0 | Component: | thread |
| Version: | Boost 1.46.1 | Severity: | Problem |
| Keywords: | Cc: |
Description
Found that shared_mutex for Win32 is using the function WaitForMultipleObjects. MSDN specifies clearly that the argument fWaitAll must be FALSE, however the current version of the file shared_mutex.hpp is ussing the call as followed:
unsigned long const wait_res=detail::win32::WaitForMultipleObjects(2,semaphores,true,::boost::detail::get_milliseconds_until(wait_until));
This failure gets reflected in Boost assertion and/or slow system. The frequency of the failure depends on the number of threads and the timings.
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Thanks for the report. I will try to take care of this soon.
comment:3 by , 11 years ago
| Milestone: | To Be Determined → Boost 1.49.0 |
|---|
Committed in trunk At revision: [75903]

MSDN for WaitForMultipleObjects under Windows CE 6.0 can be found http://msdn.microsoft.com/en-us/library/aa915354.aspx.