Package org.h2.util
Class ThreadDeadlockDetector
java.lang.Object
org.h2.util.ThreadDeadlockDetector
Detects deadlocks between threads. Prints out data in the same format as the
CTRL-BREAK handler, but includes information about table locks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDump all deadlocks (if any).static voiddumpAllThreadsAndLocks(String msg, PrintStream out) Dump all deadlocks (if any).static voidinit()Initialize the detector.
-
Method Details
-
init
public static void init()Initialize the detector. -
dumpAllThreadsAndLocks
Dump all deadlocks (if any).- Parameters:
msg- the message
-
dumpAllThreadsAndLocks
Dump all deadlocks (if any).- Parameters:
msg- the messageout- the output
-