vendor/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/context.c
/*
 *  call-seq:
 *    context.resume -> nil
 *
 *  Resumes thread from the suspended mode.
 */


Resumes thread from the suspended mode.
Resumes thread from the suspended mode .
static VALUE
Context_resume(VALUE self)
{
  debug_context_t *context;
  Data_Get_Struct(self, debug_context_t, context);
  if (!CTX_FL_TEST(context, CTX_FL_SUSPEND))
    return Qnil;
  CTX_FL_UNSET(context, CTX_FL_SUSPEND);
  if (CTX_FL_TEST(context, CTX_FL_WAS_RUNNING))
    rb_thread_wakeup(context->thread);
  return Qnil;
}
static VALUE Context_resume ( VALUE self ) { debug_context_t * context ; Data_Get_Struct ( self , debug_context_t , context ) ; if ( ! CTX_FL_TEST ( context , CTX_FL_SUSPEND ) ) return Qnil ; CTX_FL_UNSET ( context , CTX_FL_SUSPEND ) ; if ( CTX_FL_TEST ( context , CTX_FL_WAS_RUNNING ) ) rb_thread_wakeup ( context -> thread ) ; return Qnil ; }
call-seq:
    context.resume -> nil
call - seq : context . resume - > nil