www.icetips.com  Icetips Utilities Documentation 11/30/2010    

Thread Limit Global Class Overview

Previous  Top  Next  


The Thread Limit Global class inherits from the Utility Class.  It is used, along witht he Thread Limit Class, to keep track of procedures that should be limited to 1 or more maximum instances.  When that limit is reached no more instances of the particular procedure can be started and the last instance of the procedure is brought into focus.  See the Thread Limit Class for information about the class that is used on the procedure.  The global class is declared globally and is called by the procedure class.  See also the Icetips Utilities Global extension template and the Icetips Thread Limit procedure extension template.

 

ITThreadLimitGlobalClass CLASS(ITUtilityClass),TYPE,Module('ITThreadLimitClass.clw'),Link('ITThreadLimitClass.clw',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)

CriticalSection            &ICriticalSection

WindowThreads              &ITGlobalTLQ

WindowHandles              &ITInstanceQ

 

ActivateThread             Procedure(String pProcedureName, Long pInstanceToSelect)

AddProcedure               Procedure(WINDOW pWin, String pProcedureName, ITThreadLimitClass pProcClass, Byte pMaxRuns),BYTE   !! True = Procedure was added, False = Procedure over limit.

RemoveProcedure            Procedure(String pProcedureName)

RemoveWindowHandle         Procedure(LONG pHandle)

SetProcedureLimit          Procedure(String pProcedureName, Long pMaxRun)

Construct                  Procedure

Destruct                   Procedure

                         END



Direct link to this page: http://www.icetips.com/manuals/utilities/threadlimit_global_overview.htm