Click here to Skip to main content
16,006,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Moving Between Classes? Pin
Michael Dunn11-Nov-02 19:17
sitebuilderMichael Dunn11-Nov-02 19:17 
GeneralRe: Moving Between Classes? Pin
Jonah Bishop12-Nov-02 10:55
Jonah Bishop12-Nov-02 10:55 
Generalmultithread and function access Pin
zecodela11-Nov-02 17:35
zecodela11-Nov-02 17:35 
GeneralRe: multithread and function access Pin
Joao Vaz11-Nov-02 18:13
Joao Vaz11-Nov-02 18:13 
GeneralRe: multithread and function access Pin
zecodela11-Nov-02 19:28
zecodela11-Nov-02 19:28 
GeneralRe: multithread and function access Pin
Joao Vaz11-Nov-02 22:12
Joao Vaz11-Nov-02 22:12 
GeneralRe: multithread and function access Pin
Anonymous12-Nov-02 0:41
Anonymous12-Nov-02 0:41 
GeneralRe: multithread and function access Pin
Joao Vaz12-Nov-02 1:58
Joao Vaz12-Nov-02 1:58 
Anonymous wrote:
if both thread A and B access commonfunction()
will local variable, 'i' corrupt?


No, because as I said, each thread has their own stack, so each thread have independent copies of the local variables Smile | :)
So, the loop is performed two times independently by the two threads.
This function is also reentrant, because it don't use static neither global variables.
Resumming , no problems at all if you only use local variales Smile | :)

HTH




Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9

Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

Questionmy ado program don't work on another pc? Pin
sages11-Nov-02 16:03
sages11-Nov-02 16:03 
AnswerRe: my ado program don't work on another pc? Pin
Christian Graus11-Nov-02 17:17
protectorChristian Graus11-Nov-02 17:17 
GeneralThanks,i've resolved th problem. Pin
sages11-Nov-02 20:11
sages11-Nov-02 20:11 
GeneralWizard goes Next in Windows 98 Pin
Swinefeaster11-Nov-02 14:13
Swinefeaster11-Nov-02 14:13 
Generaldisable individual rows of a listctrl Pin
fordge11-Nov-02 13:55
fordge11-Nov-02 13:55 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 14:08
Swinefeaster11-Nov-02 14:08 
GeneralRe: disable individual rows of a listctrl Pin
fordge11-Nov-02 20:37
fordge11-Nov-02 20:37 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 20:40
Swinefeaster11-Nov-02 20:40 
GeneralRe: disable individual rows of a listctrl Pin
Michael Dunn11-Nov-02 16:55
sitebuilderMichael Dunn11-Nov-02 16:55 
GeneralRe: disable individual rows of a listctrl Pin
Anonymous11-Nov-02 20:38
Anonymous11-Nov-02 20:38 
GeneralCannot figure it out Pin
ed987111-Nov-02 13:01
ed987111-Nov-02 13:01 
GeneralRe: Cannot figure it out Pin
Christian Graus11-Nov-02 17:19
protectorChristian Graus11-Nov-02 17:19 
GeneralCLabel control with property sheet question Pin
DalTXColtsFan11-Nov-02 12:53
sussDalTXColtsFan11-Nov-02 12:53 
GeneralCSocket::Receive (from more than one computer) Pin
Walote11-Nov-02 10:47
Walote11-Nov-02 10:47 
GeneralCString from a UI Thread Pin
Anonymous11-Nov-02 10:25
Anonymous11-Nov-02 10:25 
GeneralRe: CString from a UI Thread Pin
dabs11-Nov-02 10:39
dabs11-Nov-02 10:39 
GeneralRe: CString from a UI Thread Pin
Anonymous11-Nov-02 10:45
Anonymous11-Nov-02 10:45 

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.