Arc Forumnew | comments | leaders | submitlogin
1 point by dido 4698 days ago | link | parent

I actually made use of this unorthodox method, which looks like it is courting fandango on core, in Arcueid's implementation of threading. I needed to find a way to interrupt execution of C code when it would have blocked on I/O, and make it resume at the same point after Arcueid's thread scheduler determines I/O can proceed. I've not figured out any other ways of doing that. Apparently setcontext and getcontext don't do this.


1 point by akkartik 4696 days ago | link

From the description it sounds like this technique provides only a subset of the power of first-class continuations. Is that true?

-----