News for hackers. Stuff that matters.
Re:Fibers: An Elegant Windows API by CodesInChaos on Friday March 29, 2019 @07:48AM (#19520767)
Fibers have some annoying edge cases related to thread local storage, which can bite fiber unaware code. Which is why Microsoft recently added User-Mode Scheduling, which behave much closer to actual threads, except that they still have the manual yielding behaviour of fibers.

https://docs.microsoft.com/en-us/windows/desktop/procthread/...

Re:Fibers: An Elegant Windows API by jstimpfle on Friday March 29, 2019 @11:22AM (#19522445)
That's because what you need is Fiber-local storage no?
Re:Fibers: An Elegant Windows API by dblohm7 on Thursday April 04, 2019 @12:25AM (#19569303)
What happens when you call an API that isn't fiber-aware and uses thread-local storage in its implementation?

Basically your entire stack needs to be fiber-aware, or you can't use them.

Re:Fibers: An Elegant Windows API by petermcneeley on Friday March 29, 2019 @11:03AM (#19522294)
Yes this is actually a significant issue since TLS is used in many cases to implement locks and mutex.