![]() |
Hydrogen Framework
1.3.1
|
Provides a caller-friendly wrapper around parallel actions. More...
Classes | |
| class | ParallelEventArgs |
| Event arguments representing the completion of a parallel action. More... | |
Public Member Functions | |
| int | CountRunning () |
| Indicates the number of incomplete operations. More... | |
| Forker | Fork (ThreadStart action) |
| Enqueues an operation. More... | |
| Forker | Fork (ThreadStart action, object state) |
| Enqueues an operation. More... | |
| void | Join () |
| Waits for all operations to complete. More... | |
| bool | Join (int millisecondsTimeout) |
| Waits (with timeout) for all operations to complete. More... | |
| Forker | OnItemComplete (EventHandler< ParallelEventArgs > handler) |
| Adds a callback to invoke when each operation completes. More... | |
| Forker | OnAllComplete (EventHandler handler) |
| Adds a callback to invoke when all operations are complete. More... | |
Events | |
| EventHandler | AllComplete [add, remove] |
| Raised when all operations have completed. More... | |
| EventHandler< ParallelEventArgs > | ItemComplete [add, remove] |
| Raised when each operation completes. More... | |
Provides a caller-friendly wrapper around parallel actions.
| int Hydrogen.Threading.Forker.CountRunning | ( | ) |
| Forker Hydrogen.Threading.Forker.Fork | ( | ThreadStart | action | ) |
Enqueues an operation.
| action | The operation to perform. |
Definition at line 107 of file Forker.cs.
| Forker Hydrogen.Threading.Forker.Fork | ( | ThreadStart | action, |
| object | state | ||
| ) |
Enqueues an operation.
| action | The operation to perform. |
| state | An opaque object, allowing the caller to identify operations. |
Definition at line 118 of file Forker.cs.
| void Hydrogen.Threading.Forker.Join | ( | ) |
Waits for all operations to complete.
Definition at line 138 of file Forker.cs.
| bool Hydrogen.Threading.Forker.Join | ( | int | millisecondsTimeout | ) |
Waits (with timeout) for all operations to complete.
Definition at line 147 of file Forker.cs.
| Forker Hydrogen.Threading.Forker.OnAllComplete | ( | EventHandler | handler | ) |
Adds a callback to invoke when all operations are complete.
Definition at line 174 of file Forker.cs.
| Forker Hydrogen.Threading.Forker.OnItemComplete | ( | EventHandler< ParallelEventArgs > | handler | ) |
Adds a callback to invoke when each operation completes.
Definition at line 162 of file Forker.cs.
|
addremove |
|
addremove |