Opened 11 years ago

Closed 11 years ago

#6012 closed Patches (wontfix)

Boost pthread_yield test build fix for OpenBSD

Reported by: brad@… Owned by: John Maddock
Milestone: Boost 1.48.0 Component: test
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The attached patch for the Boost pthread_yield test code is necessary to build on OpenBSD. The return type of pthread_yield on OpenBSD is void instead of int.

Attachments (1)

patch-libs_config_test_boost_has_pthread_yield_ipp (406 bytes ) - added by brad@… 11 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by Gennadiy Rozental, 11 years ago

Owner: changed from Gennadiy Rozental to John Maddock

This is Boost.Config ticket

comment:2 by anonymous, 11 years ago

Resolution: wontfix
Status: newclosed

The way pthread_yield is used within Boost.Thread the return value is actually required (and checked). Also note that if the platform has sched_yield, then pthread_yield is never used and the setting of this macro is irrelevant.

Note: See TracTickets for help on using tickets.