Ignore:
Timestamp:
Jan 4, 2010, 9:05:02 AM (12 years ago)
Author:
charles
Message:

(trunk libT) consistency tweak: rename tr_global{Lock,Unlock,IsLocked?} as tr_session{Lock,Unlock,IsLocked?}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9855 r9859  
    596596    assert( session != NULL );
    597597
    598     tr_globalLock( session );
     598    tr_sessionLock( session );
    599599
    600600    tor->session   = session;
     
    688688        torrentStart( tor );
    689689
    690     tr_globalUnlock( session );
     690    tr_sessionUnlock( session );
    691691}
    692692
     
    12561256    assert( !tor->isRunning );
    12571257
    1258     tr_globalLock( session );
     1258    tr_sessionLock( session );
    12591259
    12601260    tr_peerMgrRemoveTorrent( tor );
     
    12881288    tr_free( tor );
    12891289
    1290     tr_globalUnlock( session );
     1290    tr_sessionUnlock( session );
    12911291}
    12921292
     
    13021302    assert( tr_isTorrent( tor ) );
    13031303
    1304     tr_globalLock( tor->session );
     1304    tr_sessionLock( tor->session );
    13051305
    13061306    /** If we had local data before, but it's disappeared,
     
    13281328    }
    13291329
    1330     tr_globalUnlock( tor->session );
     1330    tr_sessionUnlock( tor->session );
    13311331}
    13321332
     
    13451345    assert( tr_isTorrent( tor ) );
    13461346
    1347     tr_globalLock( tor->session );
     1347    tr_sessionLock( tor->session );
    13481348
    13491349    if( !tor->isRunning )
     
    13651365    }
    13661366
    1367     tr_globalUnlock( tor->session );
     1367    tr_sessionUnlock( tor->session );
    13681368}
    13691369
     
    14101410
    14111411    assert( tr_isTorrent( tor ) );
    1412     tr_globalLock( tor->session );
     1412    tr_sessionLock( tor->session );
    14131413
    14141414    /* if the torrent's already being verified, stop it */
     
    14261426    tr_verifyAdd( tor, torrentRecheckDoneCB );
    14271427
    1428     tr_globalUnlock( tor->session );
     1428    tr_sessionUnlock( tor->session );
    14291429}
    14301430
     
    14721472    if( tr_isTorrent( tor ) )
    14731473    {
    1474         tr_globalLock( tor->session );
     1474        tr_sessionLock( tor->session );
    14751475
    14761476        tor->isRunning = 0;
     
    14781478        tr_runInEventThread( tor->session, stopTorrent, tor );
    14791479
    1480         tr_globalUnlock( tor->session );
     1480        tr_sessionUnlock( tor->session );
    14811481    }
    14821482}
     
    15131513        tr_session * session = tor->session;
    15141514        assert( tr_isSession( session ) );
    1515         tr_globalLock( session );
     1515        tr_sessionLock( session );
    15161516
    15171517        tr_torrentClearCompletenessCallback( tor );
    15181518        tr_runInEventThread( session, closeTorrent, tor );
    15191519
    1520         tr_globalUnlock( session );
     1520        tr_sessionUnlock( session );
    15211521    }
    15221522}
Note: See TracChangeset for help on using the changeset viewer.