Opened 11 years ago

Closed 11 years ago

#5594 closed Bugs (fixed)

boost::shared_mutex not fully compatible with Windows CE.

Reported by: Oscar E. Lara <oscar.lara@…> 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 Oscar E. Lara <oscar.lara@…>, 11 years ago

comment:2 by viboes, 11 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

Thanks for the report. I will try to take care of this soon.

comment:3 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.49.0

Committed in trunk At revision: [75903]

Last edited 10 years ago by viboes (previous) (diff)

comment:4 by viboes, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [76346]) Thread: merge from trunk to fix #6141, #5594, #5040 and #5502.

Note: See TracTickets for help on using tickets.