U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » MT & File Access
MT & File Access [message #8369] Tue, 06 March 2007 01:23 Go to previous message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
My application is a kind of viewer from files downloaded from the Web.

The GUI thread is the viewer.

There is also an updater thread that check for updates.

Im my current implementation, the GUI thread read local files written by the updater thread. Reads (GUI) and Writes (updater) are serialized.

I am not sure if this approach is OK:
- the GUI could be writting while the updater is also writting (i.e. Debug log),
- the GUI might be using FindFile while the updater is writting some files.

Is my implmentation right or should I gather all file acceses in a single thread ?

Any help is welcome (I'm new to MT),
Thanks,
Victor
 
Read Message
Read Message
Read Message
Previous Topic: Simulation in its own thread.
Next Topic: SlaveProcess and working directory
Goto Forum:
  


Current Time: Tue Apr 28 19:35:43 GMT+2 2026

Total time taken to generate the page: 0.00579 seconds