Examples of EPID


Examples of erjang.EPID

  private static final EAtom am_lock_checking = EAtom.intern("lock_checking");
  private static final EAtom am_compat_rel = EAtom.intern("compat_rel");

  @BIF
  public static EObject process_info(EObject pid, EObject what) {
    EPID p = pid.testPID();
    if (p == null) throw ERT.badarg(pid,what);
    // TODO: validate WHAT locally before going remote?
    return p.process_info(what);
  }
View Full Code Here

Examples of erjang.EPID

    return p.process_info(what);
  }

  @BIF
  public static EObject process_info(EObject pid) {
    EPID p = pid.testPID();
    if (p == null) throw ERT.badarg(pid);
    return p.process_info();
  }
View Full Code Here

Examples of erjang.EPID

  }

  @BIF
  static EObject group_leader(EObject group_leader, EObject pid)
  {
    EPID p = pid.testPID();
    EPID gl = group_leader.testPID();
   
    if (p==null || gl==null) throw ERT.badarg(group_leader, pid);
   
    p.set_group_leader(gl);
   
View Full Code Here

Examples of erjang.EPID

    return EProc.processes();
  }
 
  @BIF
  public static EAtom is_process_alive(EObject p) {
    EPID pid = p.testPID();
    if (pid == null) throw ERT.badarg(p);
    return ERT.box(pid.is_alive());
  }
View Full Code Here

Examples of erjang.EPID

    throw new NotImplemented();
  }
 
  @BIF
  public static EAtom check_process_code(EObject pid_arg, EObject mod_arg) {
    EPID pid = pid_arg.testPID();
    EAtom mod = mod_arg.testAtom();
   
    if (pid == null || mod == null) { throw ERT.badarg(pid_arg, mod_arg); }
   
    log.log(Level.FINE, "check_process_code not implemented (" + pid + ", " + mod + ")");
View Full Code Here

Examples of erjang.EPID

import erjang.ERT;

public class Native extends ENative {
  @BIF
  public static EAtom dflag_unicode_io(EObject pid0) {
      EPID pid;
      if ((pid = pid0.testPID()) == null)
    throw ERT.badarg(pid0);
      return ERT.TRUE; // A bit too simple perhaps.
  }
View Full Code Here

Examples of erjang.EPID

  }

  @BIF
 
  static public EString pid_to_list(EObject obj) {
    EPID pid;
    if ((pid = obj.testPID()) != null) {
      return pid.getName();
    }
    throw ERT.badarg(obj);
  }
View Full Code Here

Examples of erjang.EPID

 
  static EObject sysmon_pid = ERT.am_undefined;
 
  @BIF
  static public EObject system_monitor(EObject pid, EObject opts) {
    EPID spid = pid.testPID();
    if(spid == null) throw ERT.badarg(pid, opts);
    sysmon_pid = pid;
    return system_monitor();
  }
View Full Code Here

Examples of erjang.EPID

            out.clear();

            continue next_message;

          } else if (cmd.elem1 == EPort.am_connect) {
            EPID new_owner;
            if ((new_owner = cmd.elem2.testPID()) == null)
              break;

            EPID old_owner = this.owner;
            this.owner = new_owner;

            old_owner.send(this.port, ETuple.make(this.self_handle(),
                    EPort.am_connected));

            continue next_message;

          }
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.