Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CFileDialog saving problem Pin
David Crow3-Aug-07 4:02
David Crow3-Aug-07 4:02 
QuestionFont Dialog Box? Setting the font? Pin
deostroll2-Aug-07 13:07
deostroll2-Aug-07 13:07 
AnswerRe: Font Dialog Box? Setting the font? Pin
Michael Dunn2-Aug-07 13:56
sitebuilderMichael Dunn2-Aug-07 13:56 
AnswerRe: Font Dialog Box? Setting the font? Pin
Mark Salsbery2-Aug-07 13:56
Mark Salsbery2-Aug-07 13:56 
Questionhaving problem terminating a thread Pin
alberthyc2-Aug-07 8:49
alberthyc2-Aug-07 8:49 
QuestionRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 8:55
Mark Salsbery2-Aug-07 8:55 
AnswerRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:01
alberthyc2-Aug-07 9:01 
AnswerRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:15
alberthyc2-Aug-07 9:15 
GeneralRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 10:14
Mark Salsbery2-Aug-07 10:14 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 10:21
alberthyc2-Aug-07 10:21 
AnswerRe: having problem terminating a thread Pin
led mike2-Aug-07 9:17
led mike2-Aug-07 9:17 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:20
alberthyc2-Aug-07 9:20 
GeneralRe: having problem terminating a thread Pin
led mike2-Aug-07 9:24
led mike2-Aug-07 9:24 
GeneralRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 10:15
Mark Salsbery2-Aug-07 10:15 
AnswerRe: having problem terminating a thread Pin
Tony Hill2-Aug-07 9:30
professionalTony Hill2-Aug-07 9:30 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 9:51
alberthyc2-Aug-07 9:51 
GeneralRe: having problem terminating a thread Pin
Randor 2-Aug-07 10:33
professional Randor 2-Aug-07 10:33 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 10:47
alberthyc2-Aug-07 10:47 
GeneralRe: having problem terminating a thread Pin
led mike2-Aug-07 10:49
led mike2-Aug-07 10:49 
GeneralRe: having problem terminating a thread Pin
Mark Salsbery2-Aug-07 10:56
Mark Salsbery2-Aug-07 10:56 
GeneralRe: having problem terminating a thread Pin
led mike2-Aug-07 11:01
led mike2-Aug-07 11:01 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 11:09
alberthyc2-Aug-07 11:09 
GeneralRe: having problem terminating a thread Pin
Tony Hill2-Aug-07 10:56
professionalTony Hill2-Aug-07 10:56 
GeneralRe: having problem terminating a thread Pin
alberthyc2-Aug-07 11:07
alberthyc2-Aug-07 11:07 
GeneralRe: having problem terminating a thread Pin
Randor 2-Aug-07 11:07
professional Randor 2-Aug-07 11:07 
I think if he tried the code I posted, the wait timeout would not occur. Essentially what is probably happening is that the value of the BOOL is being retrieved from L1 or L2 cache because the thread is doing nothing else to the stack/registers. The atomic operation would prevent the cache hit.

-Randor (David Delaune)

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.