Changeset 3289 for trunk/libtransmission/torrent.c
- Timestamp:
- Oct 4, 2007, 11:47:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/torrent.c
r3284 r3289 1012 1012 tr_torrentRecheckCompleteness( tor ); 1013 1013 tor->startDate = tr_date( ); 1014 tor->isRunning = 1;1015 1014 tr_trackerStart( tor->tracker ); 1016 1015 tr_peerMgrStartTorrent( tor->handle->peerMgr, tor->info.hash ); … … 1018 1017 tr_globalUnlock( tor->handle ); 1019 1018 } 1020 1021 static void 1022 checkAndStart( void * vtor ) 1023 { 1024 tr_torrent * tor = vtor; 1019 1020 void 1021 tr_torrentStart( tr_torrent * tor ) 1022 { 1025 1023 tr_globalLock( tor->handle ); 1026 1024 … … 1037 1035 tr_torrentRecheck( tr_torrent * tor ) 1038 1036 { 1037 tr_globalLock( tor->handle ); 1038 1039 1039 if( !tor->uncheckedPieces ) 1040 1040 tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount ); … … 1042 1042 1043 1043 tr_ioRecheckAdd( tor, NULL ); 1044 }1045 1046 void1047 tr_torrentStart( tr_torrent * tor )1048 {1049 tr_globalLock( tor->handle );1050 1051 tr_runInEventThread( tor->handle, checkAndStart, tor );1052 1044 1053 1045 tr_globalUnlock( tor->handle );
Note: See TracChangeset
for help on using the changeset viewer.