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.
Constructors & DestructorYou 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.
![]() |
public:
virtual ~IThreadFn()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IThreadFn()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Run FunctionUse run function members to implement the code that you need to run on secondary threads of execution.
![]() |
public:
virtual void run() = 0
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |