Opened 7 years ago

#11442 new Bugs

boost/smart_ptr/detail/yield_k.hpp should not unconditionally call ::nanosleep

Reported by: Ed Vogel <edward.vogel@…> Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

The file boost/smart_ptr/detail/yield_k.hpp will call ::nanosleep when it's compiled in multi-threaded mode.

As nanosleep is not required for Boost (there is a BOOST_HAS_NANOSLEEP function), this code should really be guarded by conditionals and an #error directive executed if the platform does not support nanosleep.

Yea...a real nit...but my boss wants one posted...

Ed

Change History (0)

Note: See TracTickets for help on using tickets.