commit
85754f371f
@ -38,6 +38,9 @@
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
#include "ThreadLocalStorage.h"
|
||||
|
||||
SPADES_SETTING(core_numDispatchQueueThreads, "auto");
|
||||
@ -61,6 +64,8 @@ static int GetNumCores() {
|
||||
if(count < 1) { count = 1; }
|
||||
}
|
||||
return count;
|
||||
#elif defined(__GNUC__)
|
||||
return get_nprocs();
|
||||
#else
|
||||
return sysconf(_SC_NPROCESSORS_ONLN);
|
||||
#endif
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "IGLDevice.h"
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace spades {
|
||||
namespace draw {
|
||||
|
Loading…
x
Reference in New Issue
Block a user