Skip to content

Conversation

@sphericale
Copy link
Contributor

On Windows, PRIO_MAX is not defined so that in compat.h THREAD_PRIORITY_LOWEST is redefined as 20 (which on Windows is higher than real time priority).

The result is the call to SetThreadPriority(THREAD_PRIORITY_LOWEST) in miner.cpp fails and the miner threads actually run at normal priority.

Possibly not a huge issue at this point as I don't expect there are too many wallet miners left but if nothing else cleans up some compiler warning spam.

Copy link
Contributor

@spyder46n2 spyder46n2 left a comment

Choose a reason for hiding this comment

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

Compiled and verified that this is the correct (expected) behavior. Nice find.

@spyder46n2
Copy link
Contributor

@standard-error - We normally don't commit directly into Master, the process dictates that this would go into the Develop branch first and would get merged to Master during the next release. I'm happy to move this over to Develop, but I'd rather you get credit. Can you move this to merge to Develop and I'll merge it in...

@sphericale sphericale changed the base branch from master to develop October 15, 2018 20:45
@sphericale
Copy link
Contributor Author

Changed to Develop branch, cheers :)

@spyder46n2 spyder46n2 merged commit cac348b into RavenProject:develop Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants