SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.parallel
Class Mutex

java.lang.Object
  extended by com.numericalmethod.suanshu.parallel.Mutex

public class Mutex
extends java.lang.Object

Provides mutual exclusive execution of a Runnable.


Constructor Summary
Mutex()
           
 
Method Summary
 void execute(java.lang.Runnable runnable)
          The runnable is executed under synchronization of this Mutex instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mutex

public Mutex()
Method Detail

execute

public final void execute(java.lang.Runnable runnable)
The runnable is executed under synchronization of this Mutex instance.

Parameters:
runnable -

SuanShu, a Java numerical and statistical library

Copyright © 2012 Numerical Method Inc. Ltd. All Rights Reserved.