Package org.h2.util
Class ThreadDeadlockDetector
- java.lang.Object
-
- org.h2.util.ThreadDeadlockDetector
-
public class ThreadDeadlockDetector extends java.lang.ObjectDetects deadlocks between threads. Prints out data in the same format as the CTRL-BREAK handler, but includes information about table locks.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddumpAllThreadsAndLocks(java.lang.String msg)Dump all deadlocks (if any).static voiddumpAllThreadsAndLocks(java.lang.String msg, java.io.PrintStream out)Dump all deadlocks (if any).static voidinit()Initialize the detector.
-
-
-
Method Detail
-
init
public static void init()
Initialize the detector.
-
dumpAllThreadsAndLocks
public static void dumpAllThreadsAndLocks(java.lang.String msg)
Dump all deadlocks (if any).- Parameters:
msg- the message
-
dumpAllThreadsAndLocks
public static void dumpAllThreadsAndLocks(java.lang.String msg, java.io.PrintStream out)Dump all deadlocks (if any).- Parameters:
msg- the messageout- the output
-
-