← Back to team overview

kicad-developers team mailing list archive

Re: [RFC PATCH] No more boost::context

 

Hi,
 
Chris:
>> I really think that if we're going to have to support this, it should be
>> something conceptually simpler, like an emulation of coroutines using a
>> set of threads and locks.

I've tried that, but there are side effects with 3rd party libraries (wxWidgets, OpenGL),
so that is not a solution in my opinion. I found with my research, that no convincing 
C/C++ context switching library is existing, when it should work on all major platforms and with
the constraint that the tool code shouldn't be modified.

So I also think using assembler in one header is not the ideal but a very good solution,
it addresses the two most important goals (a) Bugfix for Windows/Msys2 and (b) removes the
dependency on boost::context. 

Tom:
Thank you very much for this patch.

I've tried it shortly with my test, it runs so far well (up to 500 coroutines on my system). There are some
minor things (compiler warnings, missing doxygen comments, open fixme comments) - I can work on that if you like.

Thanks,
Torsten


Follow ups

References