You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use async-std in Windows cdylibs that are being loaded/unloaded with LoadLibrary/FreeLibrary?
For this we'd have to ensure that before DllMain with PROCESS_DETACH returns, all threads that were spawned by async-std are no longer running. Unfortunately I do not have a clear overview over the intrinsic behaviour of async-std's thread pools, reactors (are they still a thing?) and whatnot, and the documentation was not that helpful in this particular matter.
Is there a way to use async-std in Windows cdylibs that are being loaded/unloaded with
LoadLibrary
/FreeLibrary
?For this we'd have to ensure that before
DllMain
withPROCESS_DETACH
returns, all threads that were spawned by async-std are no longer running. Unfortunately I do not have a clear overview over the intrinsic behaviour of async-std's thread pools, reactors (are they still a thing?) and whatnot, and the documentation was not that helpful in this particular matter.What troubles me most are the special rules that apply to DllMain, such as "you cannot wait for threads to finish".
The text was updated successfully, but these errors were encountered: