Home Units Hierarchy Routines All identifiers

Class unaOutProcessGate

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaOutProcessGate = class(unaAbstractGate)

Description

This class is useful when you wish to ensure some block of code to be executed only by one thread at a time. Only one instance can enter the gate. You should use <STRONG>try</STRONG> <STRONG>finally</STRONG> block to ensure you always leave the gate.

Hierarchy

Overview

Methods

Public constructor create();
Public destructor Destroy(); override;
Public function checkDeadlock(timeout: tTimeout = tTimeout(INFINITE); const name: string = ''): bool;
Protected function gateEnter(timeout: tTimeout = tTimeout(INFINITE) ): bool; override;
Protected procedure gateLeave(); override;

Description

Methods

Public constructor create();
 
Public destructor Destroy(); override;
 
Public function checkDeadlock(timeout: tTimeout = tTimeout(INFINITE); const name: string = ''): bool;
 
Protected function gateEnter(timeout: tTimeout = tTimeout(INFINITE) ): bool; override;
 
Protected procedure gateLeave(); override;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09