Arc Forumnew | comments | leaders | submitlogin
Continuations in C (mac.com)
3 points by dido 4726 days ago | 2 comments


1 point by dido 4726 days ago | link

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 4723 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?

-----