Right after I made the post I stumbled accross something that I could use for
thread safety, so I thought I would post in case someone else needs it for a
solution.
Solution:
void Foo()
{
// At the beginning of your function.
System::Threading::Monitor::Enter(this);
.... Do some code work
// Add the end of your function (this has to be called)
System::Threading::Monitor::Exit(this);
}
"BartMan" wrote:
Greetings,
I was looking at the C#'s "lock()" statement, and I was wondering if there
was an equivalent or recommended way of doing this in MC++.
I have a thread which I am calling a function from mc++, and I was wondering
what
the recommended ways of making it thread safe within the mc++ world.
Thanks in advance for any suggestions.