Skip to content

Commit

Permalink
Windows fix for disabling MT properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamierymenko committed Sep 11, 2024
1 parent 85fb69c commit 844d69d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/OneService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2617,6 +2617,10 @@ class OneServiceImpl : public OneService
_concurrency = 1;
_cpuPinningEnabled = false;
}
#else
_multicoreEnabled = false;
_concurrency = 1;
_cpuPinningEnabled = false;
#endif

#ifndef ZT_SDK
Expand Down
3 changes: 3 additions & 0 deletions windows/ZeroTierOne/ZeroTierOne.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@
<ClCompile Include="..\..\node\Metrics.cpp">
<Filter>Source Files\node</Filter>
</ClCompile>
<ClCompile Include="..\..\node\PacketMultiplexer.cpp">
<Filter>Source Files\node</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h">
Expand Down

0 comments on commit 844d69d

Please sign in to comment.