Changeset 6498


Ignore:
Timestamp:
Aug 12, 2008, 2:03:03 PM (13 years ago)
Author:
charles
Message:

readability tweak: remove thread names. (muks)

Location:
trunk/libtransmission
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r6490 r6498  
    426426}
    427427
    428 static void workerFunc( void * user_data )
     428static void makeMetaWorkerFunc( void * user_data )
    429429{
    430430    tr_handle * handle = (tr_handle *) user_data;
     
    496496    queue = builder;
    497497    if( !workerThread )
    498          workerThread = tr_threadNew( workerFunc, builder->handle, "makeMeta" );
     498         workerThread = tr_threadNew( makeMetaWorkerFunc, builder->handle );
    499499    tr_lockUnlock( lock );
    500500}
  • trunk/libtransmission/platform.c

    r6488 r6498  
    8888    void          (* func ) ( void * );
    8989    void           * arg;
    90     const char     * name;
    9190    tr_thread_id     thread;
    9291#ifdef WIN32
     
    111110{
    112111    tr_thread * t = _t;
    113     const char * name = t->name;
    114112
    115113#ifdef __BEOS__
     
    119117#endif
    120118
    121     tr_dbg( "Thread '%s' started", name );
    122119    t->func( t->arg );
    123     tr_dbg( "Thread '%s' exited", name );
    124120
    125121#ifdef WIN32
     
    130126
    131127tr_thread *
    132 tr_threadNew( void (*func)(void *),
    133               void * arg,
    134               const char * name )
     128tr_threadNew( void (*func)(void *), void * arg )
    135129{
    136130    tr_thread * t = tr_new0( tr_thread, 1 );
    137131    t->func = func;
    138132    t->arg  = arg;
    139     t->name = name;
    140 
    141 #ifdef __BEOS__
    142     t->thread = spawn_thread( (void*)ThreadFunc, name, B_NORMAL_PRIORITY, t );
     133
     134#ifdef __BEOS__
     135    t->thread = spawn_thread( (void*)ThreadFunc, "beos thread", B_NORMAL_PRIORITY, t );
    143136    resume_thread( t->thread );
    144137#elif defined(WIN32)
  • trunk/libtransmission/platform.h

    r6319 r6498  
    4848
    4949
    50 tr_thread*   tr_threadNew  ( void (*func)(void *), void * arg, const char * name );
     50tr_thread*   tr_threadNew  ( void (*func)(void *), void * arg );
    5151int          tr_amInThread ( const tr_thread * );
    5252
  • trunk/libtransmission/trevent.c

    r6253 r6498  
    168168    pipe( eh->fds );
    169169    eh->h = handle;
    170     eh->thread = tr_threadNew( libeventThreadFunc, eh, "libeventThreadFunc" );
     170    eh->thread = tr_threadNew( libeventThreadFunc, eh );
    171171}
    172172
  • trunk/libtransmission/verify.c

    r6425 r6498  
    178178        tr_list_append( &verifyList, node );
    179179        if( verifyThread == NULL )
    180             verifyThread = tr_threadNew( verifyThreadFunc, NULL, "verifyThreadFunc" );
     180            verifyThread = tr_threadNew( verifyThreadFunc, NULL );
    181181        tr_lockUnlock( getVerifyLock( ) );
    182182    }
Note: See TracChangeset for help on using the changeset viewer.