IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Class containing examples for More...
Public Member Functions | |
void | ExampleBlockCreateRemove (string filePath) |
Monitors the specified file and successively blocks until it is created and then until it is removed. This procedure is repeated twice. More... | |
void | ExampleBlockCreateRemove (string filePath, int numSwitches) |
Monitors the specified file and successively blocks until it is created and then until it is removed. More... | |
void | ExampleBlockCreateRemove (string filePath, int numSwitches, bool waitDirectory) |
Monitors the specified file and successively blocks until it is created and then until it is removed. More... | |
void | TestSpeedBlockCreateRemove (string filePath) |
Test of speed of reaction of file/directory creation and removal blocking waits. A specified number of alternate creations and removals are perfomed in a parallel thread, with specified delay between them. In the main thread, blocking waits are performed waiting for creation/removal in an infinite loop, and it is counted how many events are captured and how many are missed. More... | |
void | TestSpeedBlockCreateRemove (string filePath, int numSwitches, int sleepMs) |
Test of speed of reaction of file/directory creation and removal blocking waits. A specified number of alternate creations and removals are perfomed in a parallel thread, with specified delay between them. In the main thread, blocking waits are performed waiting for creation/removal in an infinite loop, and it is counted how many events are captured and how many are missed. More... | |
void | TestSpeedBlockCreateRemove (string filePath, int numSwitches, int sleepMs, bool waitDirectory) |
Test of speed of reaction of file/directory creation and removal blocking waits. A specified number of alternate creations and removals are perfomed in a parallel thread, with specified delay between them. In the main thread, blocking waits are performed waiting for creation/removal in an infinite loop, and it is counted how many events are captured and how many are missed. More... | |
Protected Attributes | |
IWaitFileEvent | _creation = null |
string | ExamplePath |
bool | IsDirectory |
bool | TthreadStopped |
int | NumIterations |
int | SleepTimeMs |
double | TestTime |
object | fileOperationLock = new object() |
Lock for file creation and removal operations. More... | |
Properties | |
virtual IWaitFileEvent | Creation [get] |
virtual IWaitFileEvent | Removal [get] |
Private Member Functions | |
void | AlternateCreateRemoveExample () |
Alternately creates and removes the specified file or directory in its own thread. More... | |
Private Attributes | |
object | lockExample = new object() |
IWaitFileEvent | _removal = null |
Class containing examples for
|
inline |
Monitors the specified file and successively blocks until it is created and then until it is removed. This procedure is repeated twice.
filePath | File whose creation and removal is monitored. |
Referenced by IG.Lib.WaitFileEventBase.ExampleBlockCreateRemove(), and IG.Lib.WaitFileEventLatenceBase.ExampleBlockCreateRemoveLatence().
|
inline |
Monitors the specified file and successively blocks until it is created and then until it is removed.
filePath | File whose creation and removal is monitored. |
numSwitches | Number of iterations (creation/removal waits). |
|
inline |
Monitors the specified file and successively blocks until it is created and then until it is removed.
filePath | File whose creation and removal is monitored. |
numSwitches | Number of iterations (creation/removal waits). |
directory | If true then creation/removal of a directory is waiting. |
|
inlineprivate |
Alternately creates and removes the specified file or directory in its own thread.
References IG.Lib.StopWatch.Reset(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), and IG.Lib.StopWatch.Time.
|
inline |
Test of speed of reaction of file/directory creation and removal blocking waits. A specified number of alternate creations and removals are perfomed in a parallel thread, with specified delay between them. In the main thread, blocking waits are performed waiting for creation/removal in an infinite loop, and it is counted how many events are captured and how many are missed.
filePath | File whose creation and removal is monitored. |
Referenced by IG.Lib.WaitFileEventBase.TestSpeedBlockCreateRemove(), and IG.Lib.WaitFileEventLatenceBase.TestSpeedBlockCreateRemoveLatence().
|
inline |
Test of speed of reaction of file/directory creation and removal blocking waits. A specified number of alternate creations and removals are perfomed in a parallel thread, with specified delay between them. In the main thread, blocking waits are performed waiting for creation/removal in an infinite loop, and it is counted how many events are captured and how many are missed.
filePath | File whose creation and removal is monitored. |
numSwitches | Number of iterations (creation/removal waits). |
sleepMs | Number of milliseconds to sleep between examples. |
|
inline |
Test of speed of reaction of file/directory creation and removal blocking waits. A specified number of alternate creations and removals are perfomed in a parallel thread, with specified delay between them. In the main thread, blocking waits are performed waiting for creation/removal in an infinite loop, and it is counted how many events are captured and how many are missed.
filePath | File whose creation and removal is monitored. |
numSwitches | Number of iterations (creation/removal waits). |
sleepMs | Number of milliseconds to sleep between examples. |
directory | If true then creation/removal of a directory is waiting. |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Lock for file creation and removal operations.
|
getprotected |
|
getprotected |