TRedirector

From Ultibo.org
Revision as of 04:01, 17 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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