git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
threads.c
diff --git
a/KernelLand/Kernel/threads.c
b/KernelLand/Kernel/threads.c
index
8189cf4
..
92a7a57
100644
(file)
--- a/
KernelLand/Kernel/threads.c
+++ b/
KernelLand/Kernel/threads.c
@@
-211,7
+211,7
@@
int Threads_SetName(const char *NewName)
if( IsHeap(oldname) ) free( oldname );
cur->ThreadName = strdup(NewName);
if( IsHeap(oldname) ) free( oldname );
cur->ThreadName = strdup(NewName);
-
Log_Debug("Threads", "Thread renamed to '%s'", NewName);
+
//
Log_Debug("Threads", "Thread renamed to '%s'", NewName);
return 0;
}
return 0;
}
@@
-504,15
+504,13
@@
tThread *Threads_GetThread(Uint TID)
tThread *thread;
// Search global list
tThread *thread;
// Search global list
- for(thread = gAllThreads;
- thread;
- thread = thread->GlobalNext)
+ for( thread = gAllThreads; thread; thread = thread->GlobalNext )
{
if(thread->TID == TID)
return thread;
}
{
if(thread->TID == TID)
return thread;
}
- Log
(
"Unable to find TID %i on main list\n", TID);
+ Log
_Notice("Threads",
"Unable to find TID %i on main list\n", TID);
return NULL;
}
return NULL;
}
@@
-767,11
+765,11
@@
int Threads_Wake(tThread *Thread)
return -EALREADY;
case THREAD_STAT_SLEEPING:
return -EALREADY;
case THREAD_STAT_SLEEPING:
- SHORTLOCK( &glThreadListLock );
// Remove from sleeping queue
// Remove from sleeping queue
+ SHORTLOCK( &glThreadListLock );
Threads_int_DelFromQueue(&gSleepingThreads, Thread);
Threads_int_DelFromQueue(&gSleepingThreads, Thread);
-
SHORTREL( &glThreadListLock );
SHORTREL( &glThreadListLock );
+
Threads_AddActive( Thread );
#if DEBUG_TRACE_STATE
Threads_AddActive( Thread );
#if DEBUG_TRACE_STATE
@@
-837,7
+835,7
@@
int Threads_Wake(tThread *Thread)
return -ENOTIMPL;
default:
return -ENOTIMPL;
default:
-
Warning("Threads_Wake - Unknown process status (%i)\n
", Thread->Status);
+
Log_Warning("Threads", "Threads_Wake - Unknown process status (%i)
", Thread->Status);
return -EINTERNAL;
}
}
return -EINTERNAL;
}
}
@@
-1081,7
+1079,7
@@
void Threads_int_DumpThread(tThread *thread)
default: break;
}
Log(" Priority %i, Quantum %i", thread->Priority, thread->Quantum);
default: break;
}
Log(" Priority %i, Quantum %i", thread->Priority, thread->Quantum);
- Log(" KStack
0x%x
", thread->KernelStack);
+ Log(" KStack
%p
", thread->KernelStack);
if( thread->bInstrTrace )
Log(" Tracing Enabled");
Proc_DumpThreadCPUState(thread);
if( thread->bInstrTrace )
Log(" Tracing Enabled");
Proc_DumpThreadCPUState(thread);
UCC
git Repository :: git.ucc.asn.au