Click or drag to resize

WorkerThreadPoolWaitFinish Method (Int32)

Waits until all threads finished processing (the workitem queue is empty).

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax
public bool WaitFinish(
	int millis
)

Parameters

millis
Type: SystemInt32
The timeout in milliseconds.

Return Value

Type: Boolean
true if threads finished processing within timespan, false otherwise
Remarks
Might immediately return if the workitem queue has already been empty without anyone waiting for it. (The AutoResetEvent is still signalled in this case).
See Also