propertyTstCustomSSHThreadPoolComponent.CurrentThreadCount
property CurrentThreadCount: Integer read fCurrentThreadCount;
Live count of worker threads currently in existence (both actively serving a connection and idle-but-pooled). Incremented when a pooled thread is created and decremented when one is destroyed, via interlocked ops so it is safe to read from any thread. Read-only; use it to monitor load or confirm a clean shutdown (it drops to zero once all pooled threads exit). This pool is used by the SSH port-forwarding components that descend from this base (the forwarding client and the listener/sender controller sockets), which draw a worker thread per forwarded channel/connection; a plain interactive client or server that opens no forwarded channels keeps the count at zero.