Class TMutexClientThread
Unit
MutexClient
Declaration
type TMutexClientThread = class(TCrossThread)
Description
TMutexClientThread
Hierarchy
Overview
Methods
Properties
Description
Methods
![Protected Protected](protected.gif) |
procedure SetIntoServerMutexBehavior; virtual; |
called when client got the mutex
|
![Protected Protected](protected.gif) |
procedure SetOutServerMutexBehavior; virtual; |
called when the client leaves the mutex.
|
![Protected Protected](protected.gif) |
procedure Execute; override; |
check for ping commmands when client owns the mutex.
|
![Protected Protected](protected.gif) |
procedure ServerHasBeenFinished; virtual; |
called when server sends a quit command.
|
![Protected Protected](protected.gif) |
function PingServer:Boolean; |
ping server
|
![Public Public](public.gif) |
constructor Create(CreateSuspended: Boolean; aSocket: Tsocket); |
|
![Public Public](public.gif) |
destructor Destroy; override; |
|
![Public Public](public.gif) |
function TryEnter:Boolean; |
try enter on server mutex.
|
![Public Public](public.gif) |
function Leave: Boolean; |
leave the server mutex.
|
![Public Public](public.gif) |
procedure DisconnectFromServer; virtual; |
send a quit command to server.
|
![Public Public](public.gif) |
procedure WaitEnd; |
wait the client thread ends.
|
Properties
![Published Published](published.gif) |
property onServerHasBeenFinished: TNotifyEvent read fServerHasBeenFinished write fServerHasBeenFinished; |
|
![Published Published](published.gif) |
property onConnectionBroken: TNotifyEvent read fConnectionBroken write fConnectionBroken; |
|
Generated by PasDoc 0.14.0.