Opened 11 years ago

Closed 11 years ago

#6100 closed Bugs (fixed)

Compute hardware_concurrency() using get_nprocs() on GLIBC systems

Reported by: smr@… Owned by: viboes
Milestone: Boost 1.49.0 Component: thread
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc: viboes

Description

The get_nprocs() function is provided by glibc and not linux-specific. The attached patch is required to build on Debian/kfreebsd.

Attachments (1)

kfreebsd-thread.patch (1020 bytes ) - added by smr@… 11 years ago.

Download all attachments as: .zip

Change History (6)

by smr@…, 11 years ago

Attachment: kfreebsd-thread.patch added

comment:1 by viboes, 11 years ago

Cc: viboes added
Owner: changed from Anthony Williams to viboes
Status: newassigned

Hi,

this patch is not enough. Could you complete it so that the condition changes only Debian/kfreebsd? Which is the specific define that determines that we are compiling for Debian/kfreebsd?

comment:2 by anonymous, 11 years ago

I don't understand the question: the point of the patch is that get_nprocs() is provided by glibc, so the current test is wrong. See discussion:

comment:3 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.49.0
Resolution: fixed
Status: assignedclosed

Thanks the pointers were quite clarifying.

Committed in trunk revision 75800.

comment:4 by viboes, 11 years ago

Resolution: fixed
Status: closedreopened

Let close it when merged to release

comment:5 by viboes, 11 years ago

Resolution: fixed
Status: reopenedclosed

Committed in release at #76291

Note: See TracTickets for help on using tickets.