@@ -136,7 +136,7 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
136
136
const bool restore;
137
137
138
138
public:
139
- TemporalThreadAffinity (uint32 core_id, bool checkStatus = true , const bool restore_ = false )
139
+ TemporalThreadAffinity (uint32 core_id, bool checkStatus = true , const bool restore_ = true )
140
140
: restore(restore_)
141
141
{
142
142
assert (core_id < 1024 );
@@ -174,7 +174,7 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
174
174
const bool restore;
175
175
176
176
public:
177
- TemporalThreadAffinity (const uint32 core_id, bool checkStatus = true , const bool restore_ = false )
177
+ TemporalThreadAffinity (const uint32 core_id, bool checkStatus = true , const bool restore_ = true )
178
178
: set_size(CPU_ALLOC_SIZE(maxCPUs)), restore(restore_)
179
179
{
180
180
assert (core_id < maxCPUs);
@@ -212,7 +212,7 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
212
212
#elif defined(_MSC_VER)
213
213
ThreadGroupTempAffinity affinity;
214
214
public:
215
- TemporalThreadAffinity (uint32 core, bool checkStatus = true , const bool restore = false )
215
+ TemporalThreadAffinity (uint32 core, bool checkStatus = true , const bool restore = true )
216
216
: affinity(core, checkStatus, restore)
217
217
{
218
218
}
0 commit comments