mirror of
https://github.com/oatpp/oatpp.git
synced 2025-01-18 16:43:57 +08:00
fixed compilation errors
This commit is contained in:
parent
22fc5bc0db
commit
3b7df3d298
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user