示例#1
0
static void
cont_init(rb_context_t *cont, rb_thread_t *th)
{
    /* save thread context */
    cont_save_thread(cont, th);
    cont->saved_thread.local_storage = 0;
}
示例#2
0
文件: cont.c 项目: knugie/ruby
static void
cont_init(rb_context_t *cont, rb_thread_t *th)
{
    /* save thread context */
    cont_save_thread(cont, th);
    cont->saved_thread.self = th->self;
    cont->saved_thread.machine.stack_maxsize = th->machine.stack_maxsize;
    cont->saved_thread.fiber = th->fiber;
    cont->saved_thread.local_storage = 0;
}
示例#3
0
文件: cont.c 项目: 0x00evil/ruby
static void
cont_init(rb_context_t *cont, rb_thread_t *th)
{
    /* save thread context */
    cont_save_thread(cont, th);
    cont->saved_thread.self = th->self;
    cont->saved_thread.machine.stack_maxsize = th->machine.stack_maxsize;
    cont->saved_thread.fiber = th->fiber;
    cont->saved_thread.local_storage = 0;
    cont->saved_thread.local_storage_recursive_hash = Qnil;
    cont->saved_thread.local_storage_recursive_hash_for_trace = Qnil;
}