Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Environment.ProcessorCount: use runtime implementation via EnvironmentAugments#25630

Merged
jkotas merged 2 commits intodotnet:masterfrom
tmds:processorcount
Dec 5, 2017
Merged

Environment.ProcessorCount: use runtime implementation via EnvironmentAugments#25630
jkotas merged 2 commits intodotnet:masterfrom
tmds:processorcount

Conversation

@tmds
Copy link
Member

@tmds tmds commented Dec 1, 2017

This doesn't build on my machine (yet):

'EnvironmentAugments' does not contain a definition for 'ProcessorCount'

EnvironmentAugments.ProcessorCount was added in dotnet/coreclr#15297.

I've made the change for all platforms (i.e. also Windows) and removed the corefx implementation.

CC @stephentoub @jkotas

@jkotas
Copy link
Member

jkotas commented Dec 1, 2017

You can also delete src\Common\src\Interop\Windows\kernel32\Interop.GetLogicalProcessorInformationEx.cs

@jkotas
Copy link
Member

jkotas commented Dec 1, 2017

'EnvironmentAugments' does not contain a definition for 'ProcessorCount'

You will also need to add it to CoreRT first - UWP NETNative leg will have this build break without it.

@stephentoub
Copy link
Member

@dotnet-bot test this please

Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@tmds
Copy link
Member Author

tmds commented Dec 5, 2017

@dotnet-bot test this please

@jkotas jkotas merged commit 17be4bc into dotnet:master Dec 5, 2017
@karelz karelz added this to the 2.1.0 milestone Dec 28, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…tAugments (dotnet/corefx#25630)

* Environment.ProcessorCount: use runtime implementation via EnvironmentAugments

* Remove Interop.GetLogicalProcessorInformationEx.cs


Commit migrated from dotnet/corefx@17be4bc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants