congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PhpThread
Code IndexAdd Tabnine to your IDE (free)

How to use
PhpThread
in
org.jboss.web.php

Best Java code snippets using org.jboss.web.php.PhpThread (Showing top 6 results out of 315)

origin: jboss.web/jbossweb

/**
 * Terminate PHP Engine.
 */
public static void terminate()
{
  if (engine != null) {
    if (phpthread != null && phpthread.isAlive()) {
      phpthread.interrupt();
    }
    engine = null;
    inited = false;
  }
}
public static void StartUp() {
origin: org.jboss.web/jbossweb

/**
 * Setup any PHP internal data structures.  This MUST be the
 * first function called for PHP module.
 * @param libraryName the name of the library to load
 */
public static boolean initialize(String libraryName)
  throws Exception
{
  if (engine == null) {
    if (libraryName == null)
      engine = new Library();
    else
      engine = new Library(libraryName);
    PHP_MAJOR_VERSION  = version(1);
    PHP_MINOR_VERSION  = version(2);
    PHP_PATCH_VERSION  = version(3);
  }
  
  phpthread = new PhpThread();
  phpthread.setDaemon(true);
  phpthread.start();
  // Wait until the startup is done.
  while (!inited &&  phpthread.isAlive()) {
    Thread.currentThread().sleep(3000);
  }
  return inited;
}
origin: org.jboss.web/jbossweb

  public void run() {
    boolean ok = true;
    Library.StartUp();
    while (ok) {
      try {
        sleep(60000);
      } catch (InterruptedException e) {
        ok = false;
      }
    }
    Library.shutdown();
  }
}
origin: jboss.web/jbossweb

/**
 * Setup any PHP internal data structures.  This MUST be the
 * first function called for PHP module.
 * @param libraryName the name of the library to load
 */
public static boolean initialize(String libraryName)
  throws Exception
{
  if (engine == null) {
    if (libraryName == null)
      engine = new Library();
    else
      engine = new Library(libraryName);
    PHP_MAJOR_VERSION  = version(1);
    PHP_MINOR_VERSION  = version(2);
    PHP_PATCH_VERSION  = version(3);
  }
  
  phpthread = new PhpThread();
  phpthread.setDaemon(true);
  phpthread.start();
  // Wait until the startup is done.
  while (!inited &&  phpthread.isAlive()) {
    Thread.currentThread().sleep(3000);
  }
  return inited;
}
origin: jboss.web/jbossweb

  public void run() {
    boolean ok = true;
    Library.StartUp();
    while (ok) {
      try {
        sleep(60000);
      } catch (InterruptedException e) {
        ok = false;
      }
    }
    Library.shutdown();
  }
}
origin: org.jboss.web/jbossweb

/**
 * Terminate PHP Engine.
 */
public static void terminate()
{
  if (engine != null) {
    if (phpthread != null && phpthread.isAlive()) {
      phpthread.interrupt();
    }
    engine = null;
    inited = false;
  }
}
public static void StartUp() {
org.jboss.web.phpPhpThread

Most used methods

  • <init>
  • interrupt
  • isAlive
  • setDaemon
  • sleep
  • start

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now