AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ GetMonitorId()

int drama::thread::Monitor::GetMonitorId ( ) const
inlineinherited

Return the monitor ID.

Valid monitor IDs are from zero up. If the value is -1, then the monitor has not been started (note, this can happen even if IsRunning() returns true, in the window between the sending of the monitor message and the returning of the Monitor ID. This is a small window, but it does exist.

Returns
The ID of the monitor. -1=not started.