LAUREL BRIDGE

WorkerThread Class

DICOM Connectivity Framework V3.4
WorkerThread is an abstract base class extended by the Philosopher class to implement thread behavior.
Inheritance Hierarchy

SystemObject
  LaurelBridge.DCFExamples.DiningPhilosophersWorkerThread
    LaurelBridge.DCFExamples.DiningPhilosophersPhilosopher

Namespace:  LaurelBridge.DCFExamples.DiningPhilosophers
Assembly:  DiningPhilosophers (in DiningPhilosophers.exe) Version: DCF34 r13043 DCF_3_4_56_20220408 NetFramework
Syntax

C#
public abstract class WorkerThread

The WorkerThread type exposes the following members.

Constructors

  NameDescription
Protected methodWorkerThread
Constructor with optional data.
Top
Properties

  NameDescription
Public propertyData
The data passed to this on construction or null.
Public propertyIsAlive
Return true if the worker thread is alive.
Public propertyStopRequested
When true, the philosopher was requested to stop eating before finishing his food.
Top
Methods

  NameDescription
Public methodJoin
Join this thread with optional timeout.
Protected methodRun
To be implemented by derived threads
Public methodStart
Start the worker thread
Public methodStop
Stop the current thread by setting a flag. We rely on the thread to stop.
Top
See Also

Reference