### IThreadFn

  The IThreadFn class represents functions to be dispatched on secondary threads of execution when you start an INonGUIThread or IThread object. The IThreadFn object is adopted by the the INonGUIThread (or IThread), which means that the INonGUIThread will take on responsibility for deleting the IThreadFn object when the new thread has completed. It is also true for all classes derived from this class.

  This class is an abstract thread function class.

### IThreadFn - Member Functions and Data by Group

### Constructors & Destructor

You cannot construct or destruct objects of this class because it is an abstract class. Use the template class IThreadMemberFn for dispatching C++ member functions to an object on a new :ref id=<%refID(glos109)%>.thread.

~IThreadFn

      public:
      virtual ~IThreadFn()

  You cannot construct or destruct objects of this class because it is an abstract class. Use the template class IThreadMemberFn for dispatching C++ member functions to an object on a new :ref id=<%refID(glos109)%>.thread.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

IThreadFn

      public:
      IThreadFn()

  Construct an IThreadFn object.
  Provides the default and only constructor for this abstract class.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Run Function

Use run function members to implement the code that you need to run on secondary threads of execution.

run

      public:
      virtual void run() = 0

  Called when the thread function object is called. Override this function to implement the code that you need to run on secondary threads of execution.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IThreadFn - Inherited Member Functions and Data

#### Inherited Public Functions

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None