Skip to content
Snippets Groups Projects
Commit 6472c12b authored by John Hodge's avatar John Hodge
Browse files

Kernel/threads - Add state dump for RWLocks

parent d0f611cd
Branches
Tags
No related merge requests found
......@@ -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",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment