Changeset 9849


Ignore:
Timestamp:
Jan 1, 2010, 10:30:36 PM (12 years ago)
Author:
charles
Message:

(trunk libT) rename tr_wait() tr_wait_msec()

Location:
trunk/libtransmission
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r9686 r9849  
    543543    tr_runInEventThread( session, tr_sessionInitImpl, &data );
    544544    while( session->waiting > 0 )
    545         tr_wait( 100 );
     545        tr_wait_msec( 100 );
    546546
    547547    return session;
     
    820820    tr_runInEventThread( session, sessionSetImpl, &data );
    821821    while( session->waiting > 0 )
    822         tr_wait( 100 );
     822        tr_wait_msec( 100 );
    823823}
    824824
     
    15271527    {
    15281528        dbgmsg( "waiting for the libtransmission thread to finish" );
    1529         tr_wait( 100 );
     1529        tr_wait_msec( 100 );
    15301530    }
    15311531
     
    15391539        dbgmsg( "waiting on port unmap (%p) or announcer (%p)",
    15401540                session->shared, session->announcer );
    1541         tr_wait( 100 );
     1541        tr_wait_msec( 100 );
    15421542    }
    15431543
     
    15501550        static tr_bool forced = FALSE;
    15511551        dbgmsg( "waiting for libtransmission thread to finish" );
    1552         tr_wait( 100 );
     1552        tr_wait_msec( 100 );
    15531553        if( deadlineReached( deadline ) && !forced )
    15541554        {
  • trunk/libtransmission/tr-dht.c

    r9848 r9849  
    516516
    517517int
    518 tr_dhtStatus( tr_session * ss, int af, int * nodes_return )
     518tr_dhtStatus( tr_session * session, int af, int * nodes_return )
    519519{
    520520    struct getstatus_closure closure = { af, -1, -1 };
    521521
    522     if( !tr_dhtEnabled( ss ) ||
     522    if( !tr_dhtEnabled( session ) ||
    523523        (af == AF_INET && dht_socket < 0) ||
    524524        (af == AF_INET6 && dht6_socket < 0) ) {
     
    528528    }
    529529
    530     tr_runInEventThread( ss, getstatus, &closure );
     530    tr_runInEventThread( session, getstatus, &closure );
    531531    while( closure.status < 0 )
    532         tr_wait( 10 /*msec*/ );
     532        tr_wait_msec( 10 /*msec*/ );
    533533
    534534    if( nodes_return )
  • trunk/libtransmission/trevent.c

    r9704 r9849  
    251251    /* wait until the libevent thread is running */
    252252    while( session->events == NULL )
    253         tr_wait( 100 );
     253        tr_wait_msec( 100 );
    254254}
    255255
  • trunk/libtransmission/utils.c

    r9847 r9849  
    786786
    787787void
    788 tr_wait( uint64_t delay_milliseconds )
     788tr_wait_msec( uint64_t delay_milliseconds )
    789789{
    790790#ifdef WIN32
  • trunk/libtransmission/utils.h

    r9845 r9849  
    268268
    269269/** @brief sleep the specified number of milliseconds */
    270 void tr_wait( uint64_t delay_milliseconds );
     270void tr_wait_msec( uint64_t delay_milliseconds );
    271271
    272272/**
  • trunk/libtransmission/verify.c

    r9819 r9849  
    143143            if( lastSleptAt != now ) {
    144144                lastSleptAt = now;
    145                 tr_wait( MSEC_TO_SLEEP_PER_SECOND_DURING_VERIFY );
     145                tr_wait_msec( MSEC_TO_SLEEP_PER_SECOND_DURING_VERIFY );
    146146            }
    147147
     
    358358        {
    359359            tr_lockUnlock( lock );
    360             tr_wait( 100 );
     360            tr_wait_msec( 100 );
    361361            tr_lockLock( lock );
    362362        }
Note: See TracChangeset for help on using the changeset viewer.