Opened 14 years ago
Closed 14 years ago
#1867 closed Bugs (fixed)
Missing member functions in shared_mutex (win32)
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
Fixed on trunk.