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