Ignore:
Timestamp:
May 28, 2007, 3:23:28 PM (14 years ago)
Author:
livings124
Message:

patch from Charles Kerr: perform file checking one at a time (fixes #124)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r1753 r1969  
    225225}
    226226
     227const tr_thread_t THREAD_EMPTY = { NULL, NULL, NULL, 0 };
     228
    227229void tr_threadJoin( tr_thread_t * t )
    228230{
    229 #ifdef SYS_BEOS
    230     long exit;
    231     wait_for_thread( t->thread, &exit );
    232 #else
    233     pthread_join( t->thread, NULL );
    234 #endif
    235     tr_dbg( "Thread '%s' joined", t->name );
    236     free( t->name );
     231    if (t->func != NULL)
     232    {
     233#ifdef SYS_BEOS
     234        long exit;
     235        wait_for_thread( t->thread, &exit );
     236#else
     237        pthread_join( t->thread, NULL );
     238#endif
     239        tr_dbg( "Thread '%s' joined", t->name );
     240        free( t->name );
     241    }
    237242}
    238243
Note: See TracChangeset for help on using the changeset viewer.