Re: newb-like question on threads
- From: "djarvinen@xxxxxxxxx" <djarvinen@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 23:39:49 -0000
On Jul 31, 4:16 pm, "Scott McPhillips [MVP]" <org-dot-mvps-at-
scottmcp> wrote:
djarvi...@xxxxxxxxx wrote:
OK, so I thought I knew what a 'thread' was. But maybe not anymore...
Basically, I just took the quick & dirty view that a thread was just a
path of execution for an app. But anyway...
I found this line of documentation for a function I wanted to use:
"XXXEvent() does not return until the specified event occurs. For
this reason, it is best used inside of a thread."
Um... OK, newbiness now. How would I (not that I want to) get this
function 'outside' of a thread?
Thanks.
The documentation probably meant "best used inside of a secondary
thread." The primary thread of a GUI program must continuously process
messages, so using wait/blocking functions inside the main thread is a
design mistake in a GUI.
Ah, thanks. Your explanation makes perfect sense.
.
- References:
- newb-like question on threads
- From: djarvinen@xxxxxxxxx
- Re: newb-like question on threads
- From: Scott McPhillips [MVP]
- newb-like question on threads
- Prev by Date: Re: newb-like question on threads
- Next by Date: Re: How do I terminate CWinApp application?
- Previous by thread: Re: newb-like question on threads
- Next by thread: Re: newb-like question on threads
- Index(es):
Relevant Pages
|