Click or drag to resize

JamThread Class

Improved version of .Net's Thread class
Inheritance Hierarchy
SystemObject
  Jam.ShellJamThread

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.2
Syntax
public class JamThread : IDisposable

The JamThread type exposes the following members.

Constructors
  NameDescription
Public methodJamThread(WorkerThreadPool)
Sets up a thread.
Public methodJamThread(WorkerThreadPool, Boolean)
Sets up a jam thread object
Top
Properties
  NameDescription
Public propertyBusyTime
Returns the time in milliseconds the thread is busy, or -1 if it's idle.
Public propertyIdleTime
Returns the time in milliseconds the thread is idle since the last time an item has been processed
Public propertyIsFinished
Returns true if the thread is finished. If this value is set, the thread is woken up in case it is waiting for an event.
Public propertyWorkItem
Get or set the WorkItem that is currently processed by the thread
Top
Methods
  NameDescription
Public methodAbort
Stops the thread by calling Abort, this usually terminates the thread. Use this function with caution, aborting a thread while it holds a mutex can cause dead-locks. ThreadAbortException for further details.
Public methodDispose
Implementation of IDisposable
Protected methodDispose(Boolean)
Releases ressources.
Public methodJoin
Joins the thread.
Public methodStop
Stops the thread and indefinitely waits until the processing finished
Public methodStop(Int32)
Stops the processing of items, the thread finishes.
Top
See Also