Package com.intellij.util.concurrency

Examples of com.intellij.util.concurrency.Semaphore.up()


        public void handleResult(final VmResult<VmValue> result) {
          final VmValue vmValue = result.getResult();
          if (vmValue != null) {
            evalResult.set(vmValue.getText());
          }
          semaphore.up();
        }
      });
    }
    catch (IOException e) {/**/}

 
View Full Code Here


              assert platform != null;
              ProcessOutput output = line.platformAdd(platform);
              if (output.getExitCode() != 0) {
                ExecutionHelper.showOutput(project, output, "Init PhoneGap/Cordova platform", null, true);
                result.set(false);
                targetDone.up();
                return;
              }

              targetDone.up();
            }
View Full Code Here

                result.set(false);
                targetDone.up();
                return;
              }

              targetDone.up();
            }
            catch (final ExecutionException e) {
              exceptions.add(e);
              result.set(false);
              targetDone.up();
View Full Code Here

              targetDone.up();
            }
            catch (final ExecutionException e) {
              exceptions.add(e);
              result.set(false);
              targetDone.up();
            }
          }
        }.queue();
      }
    }, ModalityState.NON_MODAL);
View Full Code Here

      semaphore.down();
      SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
          runnable.run();
          semaphore.up();
        }
      });
      semaphore.waitFor(1000);
      return;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.