Ignore:
Timestamp:
Jan 28, 2009, 7:35:39 PM (13 years ago)
Author:
charles
Message:

(trunk libT) add more assertions to ensure that the libevent calls are all being made from the same thread

File:
1 edited

Legend:

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

    r7803 r7811  
    347347    tr_peerIo * io;
    348348
     349    assert( session != NULL );
     350    assert( session->events != NULL );
     351    assert( tr_amInEventThread( session ) );
     352
    349353    if( socket >= 0 )
    350354        tr_netSetTOS( socket, session->peerSocketTOS );
     
    849853{
    850854    assert( tr_amInEventThread( io->session ) );
     855    assert( io->session != NULL );
    851856    assert( io->session->events != NULL );
    852857    assert( event_initialized( &io->event_read ) );
     
    872877{
    873878    assert( tr_amInEventThread( io->session ) );
     879    assert( io->session != NULL );
    874880    assert( io->session->events != NULL );
    875881    assert( event_initialized( &io->event_read ) );
Note: See TracChangeset for help on using the changeset viewer.