Stanse  -1
Public Member Functions | List of all members
cz.muni.stanse.threadchecker.locks.SpinLock Class Reference
Inheritance diagram for cz.muni.stanse.threadchecker.locks.SpinLock:
Inheritance graph
[legend]
Collaboration diagram for cz.muni.stanse.threadchecker.locks.SpinLock:
Collaboration graph
[legend]

Public Member Functions

 SpinLock (String name)
 
String getName ()
 
Integer getNodeNumber ()
 
void setNodeNumber (Integer nodeID)
 
int getState ()
 
void setState (int lockState)
 
int joinLocks (Lock obj)
 
String toString ()
 
SpinLock clone ()
 
boolean lockUp () throws LockingException
 
boolean lockDown () throws LockingException
 
boolean equals (Object obj)
 
int hashCode ()
 

Constructor & Destructor Documentation

cz.muni.stanse.threadchecker.locks.SpinLock.SpinLock ( String  name)
inline

Member Function Documentation

SpinLock cz.muni.stanse.threadchecker.locks.SpinLock.clone ( )
inline
boolean cz.muni.stanse.threadchecker.locks.SpinLock.equals ( Object  obj)
inline

Function returns true if LockName is equal, because its unique and also checks number of locking.

Parameters
objObject to equal
Returns
true if locks are equal, false otherwise
String cz.muni.stanse.threadchecker.locks.SpinLock.getName ( )
inline
Integer cz.muni.stanse.threadchecker.locks.SpinLock.getNodeNumber ( )
inline
int cz.muni.stanse.threadchecker.locks.SpinLock.getState ( )
inline
int cz.muni.stanse.threadchecker.locks.SpinLock.hashCode ( )
inline
int cz.muni.stanse.threadchecker.locks.SpinLock.joinLocks ( Lock  obj)
inline
boolean cz.muni.stanse.threadchecker.locks.SpinLock.lockDown ( ) throws LockingException
inline

Decrements value state and returns proper value.

Returns
true if the lock is unlocked after calling this method

Implements cz.muni.stanse.threadchecker.locks.Lock.

boolean cz.muni.stanse.threadchecker.locks.SpinLock.lockUp ( ) throws LockingException
inline

Increments value state and returns proper value.

Returns
true if the lock was unlocked before calling this method

Implements cz.muni.stanse.threadchecker.locks.Lock.

void cz.muni.stanse.threadchecker.locks.SpinLock.setNodeNumber ( Integer  nodeID)
inline
void cz.muni.stanse.threadchecker.locks.SpinLock.setState ( int  lockState)
inline
String cz.muni.stanse.threadchecker.locks.SpinLock.toString ( )
inline

The documentation for this class was generated from the following file: