The wxThreadHelperThread class is used internally by the wxThreadHelper mix-in class. This class simply calls wxThreadHelper::Entry in its owner class when the thread runs.
Derived from
Include files
<wx/thread.h>
See also
Members
wxThreadHelperThread::wxThreadHelperThread
wxThreadHelperThread::m_owner
wxThreadHelperThread::Entry
wxThreadHelperThread::CallEntry
wxThreadHelperThread()
This constructor simply initializes member variables.
wxThreadHelperThread& m_owner
the wxThreadHelper object which holds the code to run inside the thread.
virtual ExitCode Entry()
This is the entry point of the thread. This function eventually calls wxThreadHelper::Entry. The actual worker thread code should be implemented in wxThreadHelper::Entry, not here, so all shared data and synchronization objects can be shared easily between the main thread and the worker thread.
The returned value is the thread exit code which is the value returned by Wait().
This function is called by wxWidgets itself and should never be called directly.
virtual ExitCode CallEntry()
This is a convenience method that actually calls wxThreadHelper::Entry. This function eventually calls wxThreadHelper::Entry. The actual worker thread code should be implemented in wxThreadHelper::Entry, not here, so all shared data and synchronization objects can be shared easily between the main thread and the worker thread.
It must be declared after wxThreadHelper so it can access wxThreadHelper::Entry and avoid circular dependencies. Thus, it uses the inline keyword to allow its definition outside of the class definition. To avoid any conflicts between the virtual and inline keywords, it is a non-virtual method.
The returned value is the thread exit code which is the value returned by Wait().
This function is called by wxWidgets itself and should never be called directly.