Changeset 8244


Ignore:
Timestamp:
Apr 16, 2009, 1:10:25 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #1992: try to cleanly destroy the "verify local data" thread on shutdown

Location:
trunk/libtransmission
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r8242 r8244  
    4343#include "utils.h"
    4444#include "version.h"
     45#include "verify.h"
    4546#include "web.h"
    4647
     
    13511352    session->altTimer = NULL;
    13521353
     1354    tr_verifyClose( session );
    13531355    tr_statsClose( session );
    13541356    tr_sharedShuttingDown( session->shared );
  • trunk/libtransmission/torrent.c

    r8220 r8244  
    12451245    if( !tor->isRunning )
    12461246    {
    1247         const int isVerifying = tr_verifyInProgress( tor );
     1247        const tr_bool isVerifying = tr_verifyInProgress( tor );
    12481248
    12491249        if( !isVerifying && reloadProgress )
  • trunk/libtransmission/verify.c

    r8175 r8244  
    270270}
    271271
    272 int
     272tr_bool
    273273tr_verifyInProgress( const tr_torrent * tor )
    274274{
    275     int found = FALSE;
     275    tr_bool found = FALSE;
    276276    tr_lock * lock = getVerifyLock( );
    277277    tr_lockLock( lock );
     
    313313}
    314314
     315void
     316tr_verifyClose( tr_session * session UNUSED )
     317{
     318    tr_lockLock( getVerifyLock( ) );
     319
     320    stopCurrent = TRUE;
     321    tr_list_free( &verifyList, tr_free );
     322
     323    tr_lockUnlock( getVerifyLock( ) );
     324}
  • trunk/libtransmission/verify.h

    r7658 r8244  
    2525void tr_verifyRemove( tr_torrent * tor );
    2626
    27 int tr_verifyInProgress( const tr_torrent * tor );
     27tr_bool tr_verifyInProgress( const tr_torrent * tor );
     28
     29void tr_verifyClose( tr_session * );
    2830
    2931#endif
Note: See TracChangeset for help on using the changeset viewer.