Ignore:
Timestamp:
Jan 26, 2009, 2:51:50 AM (13 years ago)
Author:
charles
Message:

(trunk libT) add more assertions to make Biiaru crash moreHHHHHHHHHHHHHHHHhelp track down the cause of Biiaru's crashes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r7793 r7803  
    421421{
    422422    tr_peerIo * io = vio;
    423     assert( tr_isPeerIo( io ) );
     423
     424    assert( tr_isPeerIo( io ) );
     425    assert( tr_amInEventThread( io->session ) );
     426    assert( io->session->events != NULL );
    424427
    425428    dbgmsg( io, "in tr_peerIo destructor" );
     
    845848event_enable( tr_peerIo * io, short event )
    846849{
     850    assert( tr_amInEventThread( io->session ) );
     851    assert( io->session->events != NULL );
    847852    assert( event_initialized( &io->event_read ) );
    848853    assert( event_initialized( &io->event_write ) );
     
    866871event_disable( struct tr_peerIo * io, short event )
    867872{
     873    assert( tr_amInEventThread( io->session ) );
     874    assert( io->session->events != NULL );
    868875    assert( event_initialized( &io->event_read ) );
    869876    assert( event_initialized( &io->event_write ) );
     
    894901    assert( tr_isPeerIo( io ) );
    895902    assert( tr_isDirection( dir ) );
     903    assert( tr_amInEventThread( io->session ) );
     904    assert( io->session->events != NULL );
    896905
    897906    if( isEnabled )
Note: See TracChangeset for help on using the changeset viewer.