Exemplo n.º 1
0
 @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);
 }
Exemplo n.º 2
0
  @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);

    return ERT.TRUE;
  }
Exemplo n.º 3
0
 @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());
 }
Exemplo n.º 4
0
 @BIF
 public static EObject process_info(EObject pid) {
   EPID p = pid.testPID();
   if (p == null) throw ERT.badarg(pid);
   return p.process_info();
 }