Opened 14 years ago

Closed 14 years ago

#1867 closed Bugs (fixed)

Missing member functions in shared_mutex (win32)

Reported by: andysem@… Owned by: Anthony Williams
Milestone: Boost 1.36.0 Component: thread
Version: Boost 1.35.0 Severity: Problem
Keywords: thread, shared_mutex, try_lock, try_lock_upgrade Cc:

Description

The windows implementation of shared_mutex does not provide try_lock and try_lock_upgrade member functions, while pthread version does. I guess, the functions were simply forgotten to be implemented.

The try_lock function can be a trivial wrapper on top of timed_lock. The try_lock_upgrade function is a bit more complicated and, AFAICT, a part of lock_upgrade can be extracted as try_lock_upgrade.

Change History (1)

comment:1 by Anthony Williams, 14 years ago

Resolution: fixed
Status: newclosed

Fixed on trunk.

Note: See TracTickets for help on using tickets.