Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Does Worker Thread Have a Message Queue Pin
ForNow3-Jun-12 9:58
ForNow3-Jun-12 9:58 
GeneralRe: Does Worker Thread Have a Message Queue Pin
Richard MacCutchan3-Jun-12 22:05
mveRichard MacCutchan3-Jun-12 22:05 
GeneralRe: Does Worker Thread Have a Message Queue Pin
ForNow3-Jun-12 6:39
ForNow3-Jun-12 6:39 
GeneralRe: Does Worker Thread Have a Message Queue Pin
Aescleal3-Jun-12 9:17
Aescleal3-Jun-12 9:17 
GeneralRe: Does Worker Thread Have a Message Queue Pin
ForNow3-Jun-12 10:01
ForNow3-Jun-12 10:01 
GeneralRe: Does Worker Thread Have a Message Queue Pin
Aescleal4-Jun-12 0:08
Aescleal4-Jun-12 0:08 
GeneralRe: Does Worker Thread Have a Message Queue Pin
Albert Holguin4-Jun-12 8:07
professionalAlbert Holguin4-Jun-12 8:07 
AnswerRe: Does Worker Thread Have a Message Queue Pin
Erudite_Eric2-Jun-12 21:13
Erudite_Eric2-Jun-12 21:13 
No, but you can implement your own messaging system if you like.

To do this you need a message queue and a worker thread that empties it and acts on the message. Any other part of your code can lob messages onto the queue, at the head or tail depending on priority. (Message addition needs synching).

I have used this kind of design a lot in all sorts of code and it can simplify complex things massively.
==============================

Nothing to say.

GeneralRe: Does Worker Thread Have a Message Queue Pin
Albert Holguin4-Jun-12 8:09
professionalAlbert Holguin4-Jun-12 8:09 
Questionhow to right vector of pointers to binary file ? Pin
Asaf Shay2-Jun-12 10:02
Asaf Shay2-Jun-12 10:02 
AnswerRe: how to right vector of pointers to binary file ? Pin
Chris Losinger2-Jun-12 17:22
professionalChris Losinger2-Jun-12 17:22 
AnswerRe: how to right vector of pointers to binary file ? Pin
«_Superman_»2-Jun-12 17:29
professional«_Superman_»2-Jun-12 17:29 
GeneralRe: how to right vector of pointers to binary file ? Pin
Asaf Shay3-Jun-12 6:39
Asaf Shay3-Jun-12 6:39 
GeneralRe: how to right vector of pointers to binary file ? Pin
«_Superman_»3-Jun-12 15:19
professional«_Superman_»3-Jun-12 15:19 
QuestionHow to get static splitter right pane dimensions - size? Pin
Vaclav_1-Jun-12 9:56
Vaclav_1-Jun-12 9:56 
AnswerRe: How to get static splitter right pane dimensions - size? Pin
«_Superman_»1-Jun-12 17:59
professional«_Superman_»1-Jun-12 17:59 
QuestionCopying vector of pointers to another vector Pin
a1_shay1-Jun-12 6:58
a1_shay1-Jun-12 6:58 
QuestionRe: Copying vector of pointers to another vector Pin
Code-o-mat1-Jun-12 10:58
Code-o-mat1-Jun-12 10:58 
AnswerRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 11:29
a1_shay1-Jun-12 11:29 
GeneralRe: Copying vector of pointers to another vector Pin
lewax001-Jun-12 11:56
lewax001-Jun-12 11:56 
GeneralRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 12:06
a1_shay1-Jun-12 12:06 
GeneralRe: Copying vector of pointers to another vector Pin
lewax001-Jun-12 12:14
lewax001-Jun-12 12:14 
GeneralRe: Copying vector of pointers to another vector Pin
a1_shay1-Jun-12 12:30
a1_shay1-Jun-12 12:30 
QuestionUse OLE Pin
MKC0021-Jun-12 5:42
MKC0021-Jun-12 5:42 
SuggestionRe: Use OLE Pin
David Crow1-Jun-12 6:49
David Crow1-Jun-12 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.