Skip to content

Instantly share code, notes, and snippets.

@rramsden
Created April 26, 2011 05:09
Show Gist options
  • Save rramsden/941816 to your computer and use it in GitHub Desktop.
Save rramsden/941816 to your computer and use it in GitHub Desktop.
struct rb_thread {
rb_thread_t next, prev;
rb_jmpbuf_t context;
...
}
#ifdef USE_CONTEXT
typedef struct {
ucontext_t context;
volatile int status;
} rb_jmpbuf_t[1];
./configure --disable-ucontext --enable-pthread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment