Difference between revisions of "Pid"

From Mesham
Jump to navigationJump to search
m
m (4 revisions imported)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
== Example ==
 
== Example ==
  
  var a:=pid();
+
  #include <parallel>
 +
 +
function void main() {
 +
    var a:=pid();
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Latest revision as of 15:44, 15 April 2019

Overview

This pid() function will return the current processes' ID number.

  • Pass: Nothing
  • Returns: An Int representing the current process ID

Example

#include <parallel>

function void main() {
   var a:=pid();
};

Since: Version 0.41b