Package nallar.tickthreading.util.concurrent

Examples of nallar.tickthreading.util.concurrent.SimpleMutex


    removeLocks();
  }

  @Override
  public boolean run() {
    SimpleMutex xPlusLock = this.xPlusLock;
    if (xPlusLock == null || xPlusLock.tryLock()) {
      try {
        SimpleMutex xMinusLock = this.xMinusLock;
        if (xMinusLock == null || xMinusLock.tryLock()) {
          try {
            SimpleMutex zPlusLock = this.zPlusLock;
            if (zPlusLock == null || zPlusLock.tryLock()) {
              try {
                SimpleMutex zMinusLock = this.zMinusLock;
                if (zMinusLock == null || zMinusLock.tryLock()) {
                  try {
                    return super.run();
                  } finally {
                    if (zMinusLock != null) {
                      zMinusLock.unlock();
                    }
                  }
                }
              } finally {
                if (zPlusLock != null) {
View Full Code Here

TOP

Related Classes of nallar.tickthreading.util.concurrent.SimpleMutex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.