/span> unlock: boolean;
        <span style="color:navy"><b>FUNCTION</b></span> unlockall: integer <span style="color:teal"><b>VIRTUAL</b></span>;
        <span style="color:navy"><b>PROCEDURE</b></span> relockall (count: integer) <span style="color:teal"><b>VIRTUAL</b></span>;
        <span style="color:navy"><b>PROCEDURE</b></span> lockifnotmainthread;
        <span style="color:navy"><b>PROCEDURE</b></span> unlockifnotmainthread;
        
        <span style="color:navy"><b>FUNCTION</b></span> synchroniz