if (blas_goto_num < 0) blas_goto_num = 0;
if (blas_goto_num == 0) {
- p = getenv("GOTO_NUM_THREADS");
- if (p) blas_goto_num = atoi(p);
+ if (readenv(p,"GOTO_NUM_THREADS")) blas_goto_num = atoi(p);
if (blas_goto_num < 0) blas_goto_num = 0;
}
-
+
#endif
blas_omp_num = 0;
MEM_LARGE_PAGES | MEM_RESERVE | MEM_COMMIT,
PAGE_READWRITE);
- AdjustTokenPrivileges(hToken, TRUE, &tp, 0, (PTOKEN_PRIVILEGES)NULL, NULL);
+ tp.Privileges[0].Attributes = 0;
+ AdjustTokenPrivileges(hToken, FALSE, &tp, 0, NULL, NULL);
if (map_address == (void *)NULL) map_address = (void *)-1;
-
+
#endif
if (map_address != (void *)-1){