Re:C++20: Building a Thread-Pool with Coroutines
by sannysanoff on Monday May 24, 2021 @03:36AM
(#27261885)
it does not look like it's using boost::context. At least I never saw it in runtime. It's using its own asm routines for save/restore the context.
[ Parent
| on HN ]
Re:C++20: Building a Thread-Pool with Coroutines
by MichaEiler on Monday May 24, 2021 @06:01AM
(#27262633)
As far as I can tell the developer is using Fibers on Windows and boost::context on all other operating systems. You can see that he has a forward declaration in "libgo/context/fcontext.h" and then links against the respective boost assembly files in the CMakeLists.txt.
Re:C++20: Building a Thread-Pool with Coroutines
by sannysanoff on Wednesday May 26, 2021 @07:23AM
(#27289047)
Ah, correct. He's using asm files for fcontext from boost.context. Looks like those are copied into his tree from boost during build phase, and those files were the only I found. Thanks for pointing out. I maybe will need to test it on ARM one day, now I have peace of mind regarding ARM.