lib/core/thread/Test-IcingaThread.psm1

function Test-IcingaThread()
{
    param(
        [string]$Thread
    );

    if ([string]::IsNullOrEmpty($Thread)) {
        return $FALSE;
    }

    return $global:IcingaDaemonData.IcingaThreads.ContainsKey($Thread);
}