Kernel/threads - Add state dump for RWLocks
authorJohn Hodge <[email protected]>
Sat, 11 Jan 2014 12:39:24 +0000 (20:39 +0800)
committerJohn Hodge <[email protected]>
Sat, 11 Jan 2014 12:39:24 +0000 (20:39 +0800)
KernelLand/Kernel/threads.c

index b2ce594..4dcdb94 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <hal_proc.h>
 #include <semaphore.h>
+#include <rwlock.h>
 #include <vfs_threads.h>       // VFS Handle maintainence
 #include <events.h>
 
@@ -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", 

UCC git Repository :: git.ucc.asn.au