[wx-dev] Regarding wxThread

Shriram Bhat shriramnb at gmail.com
Wed Apr 23 05:18:39 PDT 2008


Hi List,

I have a wxWidget application. In that i want to call a function from a
thread.
I went through thread sample code. Here a class is inherited from wxThread
and it is overriding Entry() method.

But in my application, i just want to create a thread and run a function
inside that thread.
In MFC, there is a function

CWinThread* AfxBeginThread(
   AFX_THREADPROC pfnThreadProc,
   LPVOID pParam,
   int nPriority =3D THREAD_PRIORITY_NORMAL,
   UINT nStackSize =3D 0,
   DWORD dwCreateFlags =3D 0,
   LPSECURITY_ATTRIBUTES lpSecurityAttrs =3D NULL
);

Here in 1st parameter we can specify the function which will be run by the
thread.
Can anyone please help me in figuring out how to do that in wxWidget?

Thanks,
Shriram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080423/58d51=
5ae/attachment.htm


More information about the wx-dev mailing list