Click here to Skip to main content
15,885,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: adding percentage to calculator Pin
icechef23-Apr-09 20:51
icechef23-Apr-09 20:51 
AnswerRe: adding percentage to calculator Pin
CPallini23-Apr-09 21:24
mveCPallini23-Apr-09 21:24 
QuestionThreadsafe Data Class Pin
softwaremonkey23-Apr-09 6:40
softwaremonkey23-Apr-09 6:40 
AnswerRe: Threadsafe Data Class Pin
Stuart Dootson23-Apr-09 6:56
professionalStuart Dootson23-Apr-09 6:56 
GeneralRe: Threadsafe Data Class Pin
softwaremonkey23-Apr-09 7:07
softwaremonkey23-Apr-09 7:07 
GeneralRe: Threadsafe Data Class Pin
Stuart Dootson23-Apr-09 7:10
professionalStuart Dootson23-Apr-09 7:10 
GeneralRe: Threadsafe Data Class Pin
softwaremonkey23-Apr-09 9:03
softwaremonkey23-Apr-09 9:03 
GeneralRe: Threadsafe Data Class Pin
led mike23-Apr-09 9:04
led mike23-Apr-09 9:04 
Stuart Dootson wrote:
I should emphasise that I'm pretty sure that's how critical sections work


Yes that is how they work.

Stuart Dootson wrote:
I'd validate that belief before relying on it


Absofreakinlutly!! Of course fraking microsoft keeps hiding that information in the documentation[^] Laugh | :laugh: Laugh | :laugh:

When a thread owns a critical section, it can make additional calls to EnterCriticalSection or TryEnterCriticalSection without blocking its execution. This prevents a thread from deadlocking itself while waiting for a critical section that it already owns. To release its ownership, the thread must call LeaveCriticalSection one time for each time that it entered the critical section. There is no guarantee about the order in which waiting threads will acquire ownership of the critical section.
GeneralRe: Threadsafe Data Class Pin
Stuart Dootson23-Apr-09 9:16
professionalStuart Dootson23-Apr-09 9:16 
GeneralRe: Threadsafe Data Class Pin
led mike23-Apr-09 10:09
led mike23-Apr-09 10:09 
AnswerRe: Threadsafe Data Class Pin
Luc Pattyn23-Apr-09 9:19
sitebuilderLuc Pattyn23-Apr-09 9:19 
GeneralRe: Threadsafe Data Class Pin
softwaremonkey23-Apr-09 21:47
softwaremonkey23-Apr-09 21:47 
AnswerRe: Threadsafe Data Class Pin
Roger Stoltz23-Apr-09 22:03
Roger Stoltz23-Apr-09 22:03 
GeneralRe: Threadsafe Data Class Pin
Luc Pattyn24-Apr-09 1:43
sitebuilderLuc Pattyn24-Apr-09 1:43 
Questionuse printf or cout in MFC Pin
johnjitu23-Apr-09 4:35
johnjitu23-Apr-09 4:35 
QuestionRe: use printf or cout in MFC Pin
David Crow23-Apr-09 4:45
David Crow23-Apr-09 4:45 
AnswerRe: use printf or cout in MFC Pin
johnjitu23-Apr-09 4:48
johnjitu23-Apr-09 4:48 
GeneralRe: use printf or cout in MFC Pin
johnjitu23-Apr-09 5:01
johnjitu23-Apr-09 5:01 
QuestionRe: use printf or cout in MFC Pin
David Crow23-Apr-09 5:03
David Crow23-Apr-09 5:03 
AnswerRe: use printf or cout in MFC Pin
johnjitu23-Apr-09 5:09
johnjitu23-Apr-09 5:09 
QuestionRe: use printf or cout in MFC Pin
David Crow23-Apr-09 5:10
David Crow23-Apr-09 5:10 
AnswerRe: use printf or cout in MFC Pin
johnjitu23-Apr-09 5:12
johnjitu23-Apr-09 5:12 
GeneralRe: use printf or cout in MFC Pin
Luc Pattyn23-Apr-09 5:15
sitebuilderLuc Pattyn23-Apr-09 5:15 
GeneralRe: use printf or cout in MFC Pin
johnjitu24-Apr-09 0:56
johnjitu24-Apr-09 0:56 
QuestionRe: use printf or cout in MFC Pin
David Crow23-Apr-09 5:15
David Crow23-Apr-09 5:15 

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.