Changeset 6498 for trunk/libtransmission/platform.c
- Timestamp:
- Aug 12, 2008, 2:03:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/platform.c
r6488 r6498 88 88 void (* func ) ( void * ); 89 89 void * arg; 90 const char * name;91 90 tr_thread_id thread; 92 91 #ifdef WIN32 … … 111 110 { 112 111 tr_thread * t = _t; 113 const char * name = t->name;114 112 115 113 #ifdef __BEOS__ … … 119 117 #endif 120 118 121 tr_dbg( "Thread '%s' started", name );122 119 t->func( t->arg ); 123 tr_dbg( "Thread '%s' exited", name );124 120 125 121 #ifdef WIN32 … … 130 126 131 127 tr_thread * 132 tr_threadNew( void (*func)(void *), 133 void * arg, 134 const char * name ) 128 tr_threadNew( void (*func)(void *), void * arg ) 135 129 { 136 130 tr_thread * t = tr_new0( tr_thread, 1 ); 137 131 t->func = func; 138 132 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 ); 143 136 resume_thread( t->thread ); 144 137 #elif defined(WIN32)
Note: See TracChangeset
for help on using the changeset viewer.