Re: newb-like question on threads
On Jul 31, 4:16 pm, "Scott McPhillips [MVP]" <org-dot-mvps-at-
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?
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.
- 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