org.sourceforge.jemm.client.events
Interface LockTracer

All Known Implementing Classes:
LockTracerImpl

public interface LockTracer

Tracks all locks for the current thread.

Author:
Paul

Method Summary
 void beginLock(java.lang.Object source, java.lang.Object lock)
          If no locks exist then tracks one, otherwise increase the internal count.
 boolean currentTreadHasAnyLock()
          Determines if the current thread has a lock at all.
 void endLock(java.lang.Object source, java.lang.Object lock)
          Removes a lock, if zero removes the presence of a lock.
 

Method Detail

beginLock

void beginLock(java.lang.Object source,
               java.lang.Object lock)
If no locks exist then tracks one, otherwise increase the internal count.


endLock

void endLock(java.lang.Object source,
             java.lang.Object lock)
Removes a lock, if zero removes the presence of a lock.


currentTreadHasAnyLock

boolean currentTreadHasAnyLock()
Determines if the current thread has a lock at all.

Returns:


Copyright © 2009. All Rights Reserved.