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

readability tweak: remove thread names. (muks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.