1 \section{\class{wxThreadHelperThread
}}\label{wxThreadHelperThread
}
3 The wxThreadHelperThread class is used internally by the
4 \helpref{wxThreadHelper
}{wxthreadhelper
} mix-in class. This class simply
5 calls
\helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
} in its owner class
8 \wxheading{Derived from
}
10 \helpref{wxThread
}{wxthread
}
12 \wxheading{Include files
}
18 \helpref{wxThread
}{wxthread
},
\helpref{wxThreadHelper
}{wxthreadhelper
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxThreadHelperThread::wxThreadHelperThread
}\label{wxthreadhelperthreadctor
}
24 \func{}{wxThreadHelperThread
}{\void}
26 This constructor simply initializes member variables.
28 \membersection{wxThreadHelperThread::m
\_owner}\label{wxthreadhelperthreadmowner
}
30 \member{wxThreadHelperThread\&
}{m
\_owner}
32 the
\helpref{wxThreadHelper
}{wxthreadhelper
} object which holds the code to
33 run inside the thread.
35 \membersection{wxThreadHelperThread::Entry
}\label{wxthreadhelperthreadentry
}
37 \func{virtual ExitCode
}{Entry
}{\void}
39 This is the entry point of the thread. This function eventually calls
40 \helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
}. The actual worker
41 thread code should be implemented in
42 \helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
}, not here, so all
43 shared data and synchronization objects can be shared easily between the
44 main thread and the worker thread.
46 The returned value is the thread exit code which is the value returned by
47 \helpref{Wait()
}{wxthreadwait
}.
49 This function is called by wxWidgets itself and should never be called
52 \membersection{wxThreadHelperThread::CallEntry
}\label{wxthreadhelperthreadcallentry
}
54 \func{virtual ExitCode
}{CallEntry
}{\void}
56 This is a convenience method that actually calls
57 \helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
}. This function
58 eventually calls
\helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
}.
59 The actual worker thread code should be implemented in
60 \helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
}, not here, so all
61 shared data and synchronization objects can be shared easily between the
62 main thread and the worker thread.
64 It must be declared after
\helpref{wxThreadHelper
}{wxthreadhelper
} so it
65 can access
\helpref{wxThreadHelper::Entry
}{wxthreadhelperentry
} and avoid
66 circular dependencies. Thus, it uses the inline keyword to allow its
67 definition outside of the class definition. To avoid any conflicts
68 between the virtual and inline keywords, it is a non-virtual method.
70 The returned value is the thread exit code which is the value returned by
71 \helpref{Wait()
}{wxthreadwait
}.
73 This function is called by wxWidgets itself and should never be called