.Modelica.Utilities.System.getPid

Information

Syntax

pid = System.getPid();

Description

Returns the pid (process identification) of the process in which this function is called. This is an impure function and the returned value depends on the operating system.

Example

getPid()   // = 3044

Note

This function is impure!

Interface

function getPid
  extends Modelica.Icons.Function;
  output Integer pid "Process ID";
end getPid;

Revisions

Date Description
June 22, 2015
Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control

Generated at 2020-06-05T07:38:22Z by OpenModelica 1.16.0~dev-420-gc007a39