swr: [rasterizer core] add dummy code for cygwin build
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
@@ -221,6 +221,16 @@ void CalculateProcessorTopology(CPUNumaNodes& out_nodes, uint32_t& out_numThread
|
||||
}
|
||||
}
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
|
||||
// Dummy data just to compile
|
||||
NumaNode node;
|
||||
Core core;
|
||||
core.threadIds.push_back(0);
|
||||
node.cores.push_back(core);
|
||||
out_nodes.push_back(node);
|
||||
out_numThreadsPerProcGroup = 1;
|
||||
|
||||
#else
|
||||
|
||||
#error Unsupported platform
|
||||
@@ -267,6 +277,10 @@ void bindThread(uint32_t threadId, uint32_t procGroupId = 0, bool bindProcGroup=
|
||||
|
||||
SetThreadGroupAffinity(GetCurrentThread(), &affinity, nullptr);
|
||||
}
|
||||
#elif defined(__CYGWIN__)
|
||||
|
||||
// do nothing
|
||||
|
||||
#else
|
||||
cpu_set_t cpuset;
|
||||
pthread_t thread = pthread_self();
|
||||
|
||||
Reference in New Issue
Block a user