fixed compilation errors

This commit is contained in:
lganzzzo 2018-09-24 00:05:42 +03:00
parent 22fc5bc0db
commit 3b7df3d298
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public:
class ThreadDistributedMemoryPool {
private:
v_word32 m_shardsCount;
v_int32 m_shardsCount;
MemoryPool** m_shards;
public:
ThreadDistributedMemoryPool(const std::string& name, v_int32 entrySize, v_int32 chunkSize,

View File

@ -48,7 +48,7 @@ v_int32 Thread::assignThreadToCpuRange(std::thread::native_handle_type nativeHan
CPU_ZERO(&cpuset);
for(v_int32 i = fromCpu; i <= toCpu; i++) {
CPU_SET(cpuIndex, &cpuset);
CPU_SET(i, &cpuset);
}
v_int32 result = pthread_setaffinity_np(nativeHandle, sizeof(cpu_set_t), &cpuset);