Changeset 636

Show
Ignore:
Timestamp:
01/02/08 20:25:46 (11 months ago)
Author:
blackhedd
Message:

Added a stub for associating callback values to connections.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ext/rubymain.cpp

    r626 r636  
    523523} 
    524524 
     525 
     526/****************************** 
     527conn_associate_callback_target 
     528******************************/ 
     529 
     530static VALUE conn_associate_callback_target (VALUE self, VALUE sig) 
     531{ 
     532        // No-op for the time being. 
     533        return Qnil; 
     534} 
    525535 
    526536 
     
    594604 
    595605        rb_define_method (EmConnection, "get_outbound_data_size", (VALUE(*)(...))conn_get_outbound_data_size, 0); 
     606        rb_define_method (EmConnection, "associate_callback_target", (VALUE(*)(...))conn_associate_callback_target, 1); 
    596607 
    597608        rb_define_const (EmModule, "TimerFired", INT2NUM(100)); 
  • version_0/lib/eventmachine.rb

    r634 r636  
    223223            block and add_timer 0, block 
    224224            run_machine 
     225        rescue 
     226            STDERR.puts "#{$!}" 
    225227        ensure 
    226228            release_machine