Opened 9 years ago
Closed 9 years ago
#8898 closed Bugs (fixed)
boost/smart_ptr/detail/sp_counted_base_pt.hpp: Ignores all failures from pthread_* functions
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | smart_ptr |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | smart_ptr pthread API failure | Cc: |
Description
boost/smart_ptr/detail/sp_counted_base_pt.hpp ignores all failures from pthread_* functions. Functions include pthread_mutex_init, pthread_mutex_lock, and pthread_mutex_unlock.
From a design perspective, it might be prudent to forgo pthreads and simply use atomic operations when available.
Note:
See TracTickets
for help on using tickets.
In https://github.com/boostorg/smart_ptr/commit/bba3b446bdfaf44cfe20c9c6826f12b2843ab174.