Opened 3 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:


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...


Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Peter Dimov.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.