Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Function Pointers in OOP Pin
Alvaro Mendez6-Jan-03 11:38
Alvaro Mendez6-Jan-03 11:38 
GeneralRe: Function Pointers in OOP Pin
William E. Kempf6-Jan-03 12:03
William E. Kempf6-Jan-03 12:03 
GeneralRe: Function Pointers in OOP Pin
valikac6-Jan-03 16:07
valikac6-Jan-03 16:07 
GeneralRe: Function Pointers in OOP Pin
tilli again7-Jan-03 8:43
susstilli again7-Jan-03 8:43 
GeneralRe: Function Pointers in OOP Pin
tilli again8-Jan-03 8:18
susstilli again8-Jan-03 8:18 
QuestionTree Control Check Boxes... ??? Pin
work_to_live6-Jan-03 9:31
work_to_live6-Jan-03 9:31 
AnswerRe: Tree Control Check Boxes... ??? Pin
work_to_live6-Jan-03 9:51
work_to_live6-Jan-03 9:51 
QuestionSynchronization.. do I need? Pin
Subrahmanyam6-Jan-03 9:15
Subrahmanyam6-Jan-03 9:15 
I have a dialog based application in which I have two sources of events
1) On Timer
2) On User input(such as click of button)

Now on both events I will be calling a function, which acts on a single resource.
Calling the function while it is already executing is dangerous & can corrupt all my data.

Now I want to know do I need to put any synchronization code (SingleLock etc.) in my function.


** The important point here is that I am not creating any threads explicitly.
So my assumption is that my app is single threaded. In such case my function can never be called (from anywhere else) while it is running.

Am I correct? Am I missing anything here?

Please help me.
AnswerRe: Synchronization.. do I need? Pin
Tim Smith6-Jan-03 10:17
Tim Smith6-Jan-03 10:17 
AnswerRe: Synchronization.. do I need? Pin
Chris Losinger6-Jan-03 10:59
professionalChris Losinger6-Jan-03 10:59 
QuestionDebugging Mutexes? Pin
clintsinger6-Jan-03 8:09
clintsinger6-Jan-03 8:09 
AnswerRe: Debugging Mutexes? Pin
Tim Smith6-Jan-03 8:39
Tim Smith6-Jan-03 8:39 
GeneralRe: Debugging Mutexes? Pin
clintsinger6-Jan-03 8:47
clintsinger6-Jan-03 8:47 
GeneralRe: Debugging Mutexes? Pin
Tim Smith6-Jan-03 10:16
Tim Smith6-Jan-03 10:16 
GeneralRe: Debugging Mutexes? Pin
clintsinger9-Jan-03 7:42
clintsinger9-Jan-03 7:42 
GeneralLocalization issue Pin
Nish Nishant6-Jan-03 7:30
sitebuilderNish Nishant6-Jan-03 7:30 
GeneralRe: Localization issue Pin
Maximilien6-Jan-03 7:34
Maximilien6-Jan-03 7:34 
GeneralRe: Localization issue Pin
Nish Nishant6-Jan-03 7:47
sitebuilderNish Nishant6-Jan-03 7:47 
GeneralRe: Localization issue Pin
nde_plume6-Jan-03 8:32
nde_plume6-Jan-03 8:32 
GeneralRe: Localization issue Pin
Nish Nishant6-Jan-03 8:44
sitebuilderNish Nishant6-Jan-03 8:44 
GeneralOutlook, peer connectivity Pin
georgebrennan6-Jan-03 7:29
georgebrennan6-Jan-03 7:29 
GeneralControl Dialogs From Main Document! Pin
Ehsan Baghaki6-Jan-03 7:24
Ehsan Baghaki6-Jan-03 7:24 
GeneralRe: Control Dialogs From Main Document! Pin
Anonymous6-Jan-03 10:24
Anonymous6-Jan-03 10:24 
QuestionHow can I print a tilted triangle, looks like |> squished together? Pin
DanYELL6-Jan-03 7:17
DanYELL6-Jan-03 7:17 
AnswerRe: How can I print a tilted triangle, looks like |> squished together? Pin
Chris Losinger6-Jan-03 11:01
professionalChris Losinger6-Jan-03 11:01 

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.