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

Managed C++/CLI

 
GeneralRe: Passing Managed Code from DLLs Pin
Bobamagoo28-Nov-05 15:14
Bobamagoo28-Nov-05 15:14 
QuestionStrange VS Behavior Pin
Saksida Bojan28-Nov-05 10:09
Saksida Bojan28-Nov-05 10:09 
AnswerRe: Strange VS Behavior Pin
Nish Nishant28-Nov-05 11:04
sitebuilderNish Nishant28-Nov-05 11:04 
QuestionFixed toolbars in SDI app Pin
RoyceF27-Nov-05 17:40
RoyceF27-Nov-05 17:40 
AnswerRe: Fixed toolbars in SDI app Pin
Nish Nishant28-Nov-05 11:57
sitebuilderNish Nishant28-Nov-05 11:57 
GeneralRe: Fixed toolbars in SDI app Pin
RoyceF30-Nov-05 10:13
RoyceF30-Nov-05 10:13 
QuestionThread Safety Pin
dskips27-Nov-05 11:35
dskips27-Nov-05 11:35 
AnswerRe: Thread Safety Pin
mikanu28-Nov-05 5:07
mikanu28-Nov-05 5:07 
of course it works! Thread safety refers in general to sections of code accesing the same data. So in your case the data int a is internal to the function, thus, each instance of the function (each thread) will be operating on internal data. Your example wouldn't be thread safe if it were accessing let's say a variable int globalA defined outside the function such as:

<code>
int globalA;


int unsafeMyFunction(int myInt)
{
    globalA = myInt;
    Sleep(10000);
    return globalA;
}
</code>


The example above is a quite simple one and you can find more information on the web about concurrency and race conditions and the ways to handle these situations and of course, the issues that arise from trying to avoid them.
QuestionExit Process Pin
Saksida Bojan27-Nov-05 10:54
Saksida Bojan27-Nov-05 10:54 
AnswerRe: Exit Process Pin
dskips27-Nov-05 11:47
dskips27-Nov-05 11:47 
AnswerRe: Exit Process - stupid html Pin
dskips27-Nov-05 11:49
dskips27-Nov-05 11:49 
GeneralRe: Exit Process - stupid html Pin
Saksida Bojan27-Nov-05 18:40
Saksida Bojan27-Nov-05 18:40 
AnswerRe: Exit Process Pin
Nish Nishant28-Nov-05 5:20
sitebuilderNish Nishant28-Nov-05 5:20 
AnswerRe: Exit Process Pin
Nish Nishant28-Nov-05 5:22
sitebuilderNish Nishant28-Nov-05 5:22 
GeneralRe: Exit Process Pin
Saksida Bojan28-Nov-05 9:50
Saksida Bojan28-Nov-05 9:50 
GeneralRe: Exit Process Pin
Nish Nishant28-Nov-05 11:02
sitebuilderNish Nishant28-Nov-05 11:02 
GeneralRe: Exit Process Pin
Saksida Bojan28-Nov-05 18:49
Saksida Bojan28-Nov-05 18:49 
QuestionSystem::String and top level handles??? Pin
John L. DeVito26-Nov-05 6:52
professionalJohn L. DeVito26-Nov-05 6:52 
AnswerRe: System::String and top level handles??? Pin
Nish Nishant26-Nov-05 8:10
sitebuilderNish Nishant26-Nov-05 8:10 
GeneralRe: System::String and top level handles??? Pin
John L. DeVito26-Nov-05 8:20
professionalJohn L. DeVito26-Nov-05 8:20 
QuestionNeed HELP Pin
Saksida Bojan25-Nov-05 4:54
Saksida Bojan25-Nov-05 4:54 
AnswerRe: Need HELP Pin
Nish Nishant25-Nov-05 4:59
sitebuilderNish Nishant25-Nov-05 4:59 
GeneralRe: Need HELP Pin
Saksida Bojan27-Nov-05 9:08
Saksida Bojan27-Nov-05 9:08 
Question.NET 2.0 Pin
Saksida Bojan25-Nov-05 4:38
Saksida Bojan25-Nov-05 4:38 
AnswerRe: .NET 2.0 Pin
Nish Nishant25-Nov-05 5:00
sitebuilderNish Nishant25-Nov-05 5:00 

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.