From: John Hodge Date: Sat, 11 Jan 2014 12:39:24 +0000 (+0800) Subject: Kernel/threads - Add state dump for RWLocks X-Git-Tag: rel0.15~14 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6472c12b69349d86f5342c1d3676ddb671b199dd;p=tpg%2Facess2.git Kernel/threads - Add state dump for RWLocks --- diff --git a/KernelLand/Kernel/threads.c b/KernelLand/Kernel/threads.c index b2ce594f..4dcdb946 100644 --- a/KernelLand/Kernel/threads.c +++ b/KernelLand/Kernel/threads.c @@ -10,6 +10,7 @@ #include #include #include +#include #include // VFS Handle maintainence #include @@ -1251,6 +1252,11 @@ void Threads_int_DumpThread(tThread *thread) case THREAD_STAT_MUTEXSLEEP: Log(" Mutex Pointer: %p", thread->WaitPointer); break; + case THREAD_STAT_RWLOCKSLEEP: + Log(" Lock Pointer: %p", thread->WaitPointer); + Log(" Lock Name: %s", + ((tRWLock*)thread->WaitPointer)->Name); + break; case THREAD_STAT_SEMAPHORESLEEP: Log(" Semaphore Pointer: %p", thread->WaitPointer); Log(" Semaphore Name: %s:%s",