t us: integer); <span style="color:teal"><b>VIRTUAL</b></span>;
        
        <span style="color:navy"><b>FUNCTION</b></span> islockedth<span style="color:navy"><b>READ</b></span>: boolean; //true if calling thread holds the lock
        <span style="color:navy"><b>FUNCTION</b></span> islockedmainthread: boolean;
        <span style="color:navy"><b>FUNCTION</b></span> trylock: boolean;
        <span style="color:navy"><b>FUNCTION</b></span> lock: boolean;
        <span style="color:navy"><b>FUNCTION</b><