This might sound like a dumb question...
What should a wxThread be used for?
uses for wxthread
-
- Earned some good credits
- Posts: 132
- Joined: Mon Apr 04, 2005 12:54 am
- Location: California
- Contact:
uses for wxthread
I see said the blind man to the deaf girl who was mute.
Visit my project at: http://vwp.sourceforge.net
wx version:2.6.2 and 2.6.3 on linux
OS's:Windows XP, Gentoo is the best!!!!!!
compiler:Codeblocks(MingW32) and gcc on linux
Visit my project at: http://vwp.sourceforge.net
wx version:2.6.2 and 2.6.3 on linux
OS's:Windows XP, Gentoo is the best!!!!!!
compiler:Codeblocks(MingW32) and gcc on linux
-
- I live to help wx-kind
- Posts: 196
- Joined: Tue Dec 07, 2004 8:54 pm
- Location: Essen, Germany
Re: uses for wxthread
There are several situations. An application can contain a several inherited from wxThread classes and uses the only instance of the every inherited class. For example, a programm contains a CReaderThread class to read a big amount of data from a file and in parallel displays progress information in a status bar. After the reading process the application handles the data in some way using an instance of the wxThread inherited class (for example CDataHandleThread) to give someone ability to see the handling progress and stop this process.travfar wrote:This might sound like a dumb question...
What should a wxThread be used for?
From other hand, if the data handling task is easy to split on parallel subtasks, then the application creates several instaces of a CDataHandleWorkerThread class to handle the data and one thread to manange all the worker threads. Very often the number of the worker threads equal to a processors number of a computer.
The text above contains simple examples how to use the wxThread class, there are a number of other more complex examples.
Funny poll ... if a person selects NONE his background on GUI programming is most likely questionable. There is always one thread in your app, wether you like it or not
Interesting poll though. I worked with threads a lot (and still do) but not in my wxWidgets apps. There was no need for it, I can imagine when creating an internet app of some kind, it would be the way to go to put a connection in a thread (at least at the server side)..
Regards,
- Jorgen
Interesting poll though. I worked with threads a lot (and still do) but not in my wxWidgets apps. There was no need for it, I can imagine when creating an internet app of some kind, it would be the way to go to put a connection in a thread (at least at the server side)..
Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
- Ryan Norton
- wxWorld Domination!
- Posts: 1319
- Joined: Mon Aug 30, 2004 6:01 pm
Well, the main wxThread is NULL, so I think it would be technically correct on windowsJorg wrote:Funny poll ... if a person selects NONE his background on GUI programming is most likely questionable. There is always one thread in your app, wether you like it or not
[Mostly retired moderator, still check in to clean up some stuff]