[#BloombergLP-balb-PerformanceMonitor-unregisterPid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PerformanceMonitor.adoc[PerformanceMonitor]::unregisterPid
:relfileprefix: ../../../
:mrdocs:

Unregister the specified process `pid` from this performance monitor&period;

== Synopsis

Declared in `&lt;balb&lowbar;performancemonitor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
unregisterPid(int pid);
----

== Description

After unregistration, to statistics for the `pid` will be no longer be available unless the `pid` is re&hyphen;registered with the performance monitor through calling `registerPid`&period; A `pid` value of zero is translated to the current process id&period; Return 0 on success or a non&hyphen;zero value otherwise&period;

== Return Value

0 on success, or a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pid*
| process id to unregister&semi; 0 means the current process
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
