TRedirector

From Ultibo.org
Jump to: navigation, search

Return to Unit Filesystem


Description


To be documented

Class definitions



TRedirector = class(TListObject)

constructor Create(ADriver:TFileSysDriver);  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
FLocalLock:TMutexHandle;  
protected
FDriver:TFileSysDriver;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
public
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
 
function LocateDrives:Boolean; virtual;  
 
function RedirectPath(const APath:String):Boolean; virtual;  
function RedirectDrive(ADrive:TDiskDrive):Boolean; virtual;  
function AttachPath(const APath:String; ADrive:TDiskDrive):Boolean; virtual;  
function DetachDrive(ADrive:TDiskDrive):Boolean; virtual;  


Function declarations



constructor TRedirector.Create(ADriver:TFileSysDriver);
Description: To be documented
Note None documented


destructor TRedirector.Destroy;
Description: To be documented
Note None documented


function TRedirector.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TRedirector.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function TRedirector.ReaderLock:Boolean;
Description: To be documented
Note None documented


function TRedirector.ReaderUnlock:Boolean;
Description: To be documented
Note None documented


function TRedirector.WriterLock:Boolean;
Description: To be documented
Note None documented


function TRedirector.WriterUnlock:Boolean;
Description: To be documented
Note None documented


function TRedirector.LocateDrives:Boolean;
Description: To be documented
Note None documented


function TRedirector.RedirectPath(const APath:String):Boolean;
Description: To be documented
Note None documented


function TRedirector.RedirectDrive(ADrive:TDiskDrive):Boolean;
Description: To be documented
Note Caller must hold the drive lock


function TRedirector.AttachPath(const APath:String; ADrive:TDiskDrive):Boolean;
Description: To be documented
Note Caller must hold the drive lock


function TRedirector.DetachDrive(ADrive:TDiskDrive):Boolean;
Description: To be documented
Note Detach does not free the Drive only the FileSystem

Caller must hold the drive writer lock


Return to Unit Reference