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
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Reference (javax.naming)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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