Opened 7 years ago

Closed 7 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@… 7 years ago.

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by smr@…

Attachment: kfreebsd-thread.patch added

comment:1 Changed 7 years ago by viboes

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 Changed 7 years ago by anonymous

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 Changed 7 years ago by viboes

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

Thanks the pointers were quite clarifying.

Committed in trunk revision 75800.

comment:4 Changed 7 years ago by viboes

Resolution: fixed
Status: closedreopened

Let close it when merged to release

comment:5 Changed 7 years ago by viboes

Resolution: fixed
Status: reopenedclosed

Committed in release at #76291

Note: See TracTickets for help on using tickets.