 | ThreadPoolFetchWorkerAndExecuteWork Method |
Tries to fetch a worker, if this fails (because the thread pool is depleted) -1 is returned.
Otherwise, a worker starts executing the given task, and its internal thread id is returned.
Namespace:
de.unika.ipd.grGen.lgsp
Assembly:
lgspBackend (in lgspBackend.dll) Version: GrGen.NET 7.2
Syntaxpublic static int FetchWorkerAndExecuteWork(
ParameterizedThreadStart task,
Object argument
)
Parameters
- task
- Type: System.ThreadingParameterizedThreadStart
- argument
- Type: SystemObject
Return Value
Type:
Int32
See Also