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 » Developing U++ » U++ Developers corner » The plan....
Re: The plan.... [message #17781 is a reply to message #17772] Thu, 28 August 2008 15:54 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
luzr wrote on Thu, 28 August 2008 14:46

zsolt wrote on Thu, 28 August 2008 08:21

luzr wrote on Thu, 28 August 2008 09:02


Maybe we should make CtrlCore fully MT safe (in common sense, where you are required to serialize access to single widget by multiple threads).

PostCallback is good, but sometimes more straighforward solution would be even better...

Mirek


A thread safe Callback system would be much more useful, I think.


Callback itself is thread-safe.

And, I guess, PostCallback method can be considered a thread-safe callback system; that is what we have now...

What else should it do? (Note that it is technically impossible to call another thread's routine - that would be "interrupt").

Mirek


I would like an inter-thread communication framework:
  1. threads are waiting for a job queue
  2. threads can have special job-creating Callback like objects
  3. threads can register their methods to that Callback like objects of other threads ( in a type-safe way, like with current callback functions or THISBACK macros)
  4. when a thread calls it's own Callback like object, it creates the job-objects and puts them to the fifos of registered threads
  5. threads are executing jobs from fifos on their own threads
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Releases thoughts....
Next Topic: MMX - no gain again...
Goto Forum:
  


Current Time: Thu May 09 01:46:36 CEST 2024

Total time taken to generate the page: 0.03151 seconds