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: Jeffrey Walton <noloader@…> 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.

Change History (1)

Note: See TracTickets for help on using tickets.