@@ -136,7 +136,7 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
136136 const bool restore;
137137
138138public:
139- TemporalThreadAffinity (uint32 core_id, bool checkStatus = true , const bool restore_ = false )
139+ TemporalThreadAffinity (uint32 core_id, bool checkStatus = true , const bool restore_ = true )
140140 : restore(restore_)
141141 {
142142 assert (core_id < 1024 );
@@ -174,7 +174,7 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
174174 const bool restore;
175175
176176public:
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 )
178178 : set_size(CPU_ALLOC_SIZE(maxCPUs)), restore(restore_)
179179 {
180180 assert (core_id < maxCPUs);
@@ -212,7 +212,7 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
212212#elif defined(_MSC_VER)
213213 ThreadGroupTempAffinity affinity;
214214public:
215- TemporalThreadAffinity (uint32 core, bool checkStatus = true , const bool restore = false )
215+ TemporalThreadAffinity (uint32 core, bool checkStatus = true , const bool restore = true )
216216 : affinity(core, checkStatus, restore)
217217 {
218218 }
0 commit comments