Package net.sf.mzmine.desktop.preferences

Examples of net.sf.mzmine.desktop.preferences.NumOfThreadsParameter


      // Get a snapshot of the queue
      WrappedTask[] queueSnapshot = taskQueue.getQueueSnapshot();

      // Obtain the settings of max concurrent threads
      NumOfThreadsParameter parameter = MZmineCore.getConfiguration()
          .getPreferences()
          .getParameter(MZminePreferences.numOfThreads);
      int maxRunningThreads;
      if (parameter.isAutomatic() || (parameter.getValue() == null))
        maxRunningThreads = Runtime.getRuntime().availableProcessors();
      else
        maxRunningThreads = parameter.getValue();

      // Check all tasks in the queue
      for (WrappedTask task : queueSnapshot) {

        // Skip assigned and canceled tasks
View Full Code Here

TOP

Related Classes of net.sf.mzmine.desktop.preferences.NumOfThreadsParameter

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.