egametang / ET

Unity3D Client And C# Server Framework
Other
8.6k stars 2.97k forks source link

ThreadScheduler loop问题 #601

Closed xiedantibu closed 1 month ago

xiedantibu commented 1 month ago

在ThreadScheduler loop中 Fiber.Instance以及SynchronizationContext.SetSynchronizationContext都放在while循环外面,这样第一次循环可能有用,下一次循环还起作用吗?有人知道为什么不放在循环中吗?

egametang commented 1 month ago

ThreadScheduler 是一个Fiber一个线程,没人去改Fiber.Instance