MCPcopy Create free account
hub / github.com/SWI-Prolog/packages-jpl / pid

Method pid

src/examples/java/thread/PrologMT.java:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 public static int pid() {
20 Map<String, Term> solution;
21 Query q = new Query("current_prolog_flag(pid, PID)");
22 solution = q.oneSolution();
23 return solution.get("PID").intValue();
24 }
25
26 public static void main(String argv[]) {
27 int max = 20;

Callers 1

mainMethod · 0.95

Calls 2

oneSolutionMethod · 0.95
intValueMethod · 0.45

Tested by

no test coverage detected