Home » U++ Library support » U++ MT-multithreading and servers » CPU_Cores() error
Re: CPU_Cores() error [message #14564 is a reply to message #14546] |
Mon, 03 March 2008 20:11 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
kodos wrote on Sun, 02 March 2008 11:14 | Hi,
I have found one or two bugs in the function CPU_Cores() under Win32.
1)
The for loop in the 32 bit version of the function should only run trough 32 times not 64 times.
|
Correct and fixed (but actually not a bug, it worked).
Quote: |
2)
Shouldn't we use the ProcessAffinityMask instead of the SystemAffinityMask to get the available cores?
|
Maybe... Should these be the samein most cases?
Mirek
[Updated on: Mon, 03 March 2008 20:12] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri May 10 06:21:49 CEST 2024
Total time taken to generate the page: 0.01638 seconds
|