Skip to content
Snippets Groups Projects
gvl_wrappers.cpp 518 B
Newer Older
  • Learn to ignore specific revisions
  • /*
     * gvl_wrappers.c - Wrapper functions for locking/unlocking the Ruby GVL
     *
     */
    
    #include "FXRbCommon.h"
    
    
    __thread int g_fxrb_thread_has_gvl = 1;
    
    
    FOR_EACH_BLOCKING_FUNCTION( DEFINE_GVL_WRAPPER_STRUCT );
    FOR_EACH_BLOCKING_FUNCTION( DEFINE_GVL_SKELETON );
    FOR_EACH_BLOCKING_FUNCTION( DEFINE_GVL_STUB );
    
    FOR_EACH_CALLBACK_FUNCTION( DEFINE_GVL_WRAPPER_STRUCT );
    FOR_EACH_CALLBACK_FUNCTION( DEFINE_GVLCB_SKELETON );
    FOR_EACH_CALLBACK_FUNCTION( DEFINE_GVLCB_SKELETON2 );
    FOR_EACH_CALLBACK_FUNCTION( DEFINE_GVLCB_STUB );