X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;fp=src%2Fmisc.cpp;h=5572bc91c8ed57c0d15367e7e8fc24da57453e5e;hp=e6a29af78366684a28a3056e4f5a8f4c01964e66;hb=ae9892788526a3809f490bbc20d85d458b987da3;hpb=c4c2e08f0d71c8e8f0bdfcb988a42b33243fd2ca diff --git a/src/misc.cpp b/src/misc.cpp index e6a29af7..5572bc91 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -224,11 +224,11 @@ void bindThisThread(size_t) {} #else -/// get_group() retrieves logical processor information using Windows specific +/// best_group() retrieves logical processor information using Windows specific /// API and returns the best group id for the thread with index idx. Original /// code from Texel by Peter Österlund. -int get_group(size_t idx) { +int best_group(size_t idx) { int threads = 0; int nodes = 0; @@ -299,7 +299,7 @@ int get_group(size_t idx) { void bindThisThread(size_t idx) { // Use only local variables to be thread-safe - int group = get_group(idx); + int group = best_group(idx); if (group == -1) return;