Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ExitThread() Pin
Naveen5-Jun-07 14:20
Naveen5-Jun-07 14:20 
AnswerRe: ExitThread() Pin
Stephen Hewitt5-Jun-07 14:21
Stephen Hewitt5-Jun-07 14:21 
QuestionAdding new section to PE Pin
edvintas5-Jun-07 11:19
edvintas5-Jun-07 11:19 
AnswerRe: Adding new section to PE Pin
Stephen Hewitt5-Jun-07 14:27
Stephen Hewitt5-Jun-07 14:27 
Questionusing fstream to read resource data c++ Pin
bimgot5-Jun-07 9:48
bimgot5-Jun-07 9:48 
AnswerRe: using fstream to read resource data c++ Pin
David Crow5-Jun-07 10:12
David Crow5-Jun-07 10:12 
GeneralRe: using fstream to read resource data c++ Pin
bimgot5-Jun-07 14:00
bimgot5-Jun-07 14:00 
QuestionAsynchronous Cross-thread Signaling Pin
Cyrilix5-Jun-07 7:23
Cyrilix5-Jun-07 7:23 
I was wondering how the operating system handles this (if it's at all possible). I was thinking that the main thread could hook itself to an event (that when signaled, outputs the word "foo" to console) and then spawn a child thread that does some work. When the child thread is done work, it would raise a signal to the event that the main thread would catch, before the child thread terminates.

The concept I'm having trouble working around is the following:

Main Thread              Child Thread
  |
  |--------------------------->
  |                           |
  |                           |
  |                           |
  |<---------------------------
  |
  |


When the child thread raises the signal, and the main thread catches it, would it stop whatever it's currently executing to write the word "foo" to console, then continue on with whatever it's doing?
AnswerRe: Asynchronous Cross-thread Signaling Pin
KellyR5-Jun-07 8:38
KellyR5-Jun-07 8:38 
AnswerRe: Asynchronous Cross-thread Signaling Pin
Matthew Faithfull5-Jun-07 8:44
Matthew Faithfull5-Jun-07 8:44 
GeneralRe: Asynchronous Cross-thread Signaling Pin
Cyrilix5-Jun-07 8:49
Cyrilix5-Jun-07 8:49 
GeneralRe: Asynchronous Cross-thread Signaling Pin
Matthew Faithfull5-Jun-07 9:10
Matthew Faithfull5-Jun-07 9:10 
GeneralRe: Asynchronous Cross-thread Signaling Pin
Cyrilix5-Jun-07 10:04
Cyrilix5-Jun-07 10:04 
GeneralRe: Asynchronous Cross-thread Signaling Pin
Matthew Faithfull5-Jun-07 10:57
Matthew Faithfull5-Jun-07 10:57 
QuestionCAsyncSocket::Connect Pin
kcynic5-Jun-07 7:06
kcynic5-Jun-07 7:06 
AnswerRe: CAsyncSocket::Connect Pin
Mark Salsbery5-Jun-07 7:29
Mark Salsbery5-Jun-07 7:29 
Questionsqltypes.h giving error Pin
Programm3r5-Jun-07 6:21
Programm3r5-Jun-07 6:21 
AnswerRe: sqltypes.h giving error Pin
Reagan Conservative5-Jun-07 6:33
Reagan Conservative5-Jun-07 6:33 
QuestionRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 7:30
Programm3r5-Jun-07 7:30 
AnswerRe: sqltypes.h giving error Pin
Mark Salsbery5-Jun-07 8:23
Mark Salsbery5-Jun-07 8:23 
GeneralRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 8:39
Programm3r5-Jun-07 8:39 
GeneralRe: sqltypes.h giving error Pin
Mark Salsbery5-Jun-07 8:49
Mark Salsbery5-Jun-07 8:49 
GeneralRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 8:51
Programm3r5-Jun-07 8:51 
GeneralRe: sqltypes.h giving error Pin
Mark Salsbery5-Jun-07 9:00
Mark Salsbery5-Jun-07 9:00 
GeneralRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 19:21
Programm3r5-Jun-07 19:21 

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.