Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Functions | Variables
closure.c File Reference
#include <fiddle.h>
#include <ruby/thread.h>

Go to the source code of this file.

Data Structures

struct  fiddle_closure
 
struct  callback_args
 

Macros

#define USE_FFI_CLOSURE_ALLOC   1
 

Functions

int ruby_thread_has_gvl_p (void)
 
void Init_fiddle_closure (void)
 

Variables

VALUE cFiddleClosure
 
const rb_data_type_t closure_data_type
 

Macro Definition Documentation

◆ USE_FFI_CLOSURE_ALLOC

#define USE_FFI_CLOSURE_ALLOC   1

Definition at line 23 of file closure.c.

Function Documentation

◆ Init_fiddle_closure()

void Init_fiddle_closure ( void  )

◆ ruby_thread_has_gvl_p()

int ruby_thread_has_gvl_p ( void  )

Definition at line 1543 of file thread.c.

Variable Documentation

◆ cFiddleClosure

VALUE cFiddleClosure

Definition at line 6 of file closure.c.

Referenced by Init_fiddle_closure().

◆ closure_data_type

const rb_data_type_t closure_data_type
Initial value:
= {
"fiddle/closure",
{0, dealloc, closure_memsize,},
}

Definition at line 55 of file closure.c.