Exemple #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);
 }
Exemple #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;
  }
Exemple #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());
 }
Exemple #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();
 }