Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Simulation in its own thread.
Re: Simulation in its own thread. [message #8017 is a reply to message #8016] Sun, 04 February 2007 14:01 Go to previous messageGo to previous message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
give your app a CriticalSection, lets call it data:
CriticalSection data;


locking it is done by
data.Enter(); //enter the critical section
data.Leave(); //leave the critical section
CriticalSection::Lock __(data); //lock the critical section until destroyed eg create it at beginnin of a method and the whole method is secured for access 


But i am not sure wether this helps you, because both apps have to use the same CriticalSection.

Bas
 
Read Message
Read Message
Read Message
Previous Topic: SSLSocket VerifyPeer -> how to set trusted CAs?
Next Topic: MT & File Access
Goto Forum:
  


Current Time: Mon May 13 02:17:59 CEST 2024

Total time taken to generate the page: 0.01839 seconds