lp:~fpstovall/nrtb/D_tech_demos

Created by Rick Stovall and last modified
Get this branch:
bzr branch lp:~fpstovall/nrtb/D_tech_demos
Only Rick Stovall can upload to this branch. If you are Rick Stovall please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Rick Stovall
Project:
New Real Time Battle
Status:
Merged

Recent revisions

26. By Rick Stovall <fpstovall>

This thread pool code is both generic and fully functional, meeting the final requirements for our technology demonstrators.

25. By Rick Stovall <fpstovall>

New simplified queue model.. shockingly, the thread queue code compiles. I now need to actually make it do some work.

24. By Rick Stovall <fpstovall>

Checking in a new freemind map showing the conceptual design I'm now persuing for the thread pool.

23. By Rick Stovall <fpstovall>

Start of the thread pool redesign... including a global pool registry.

22. By Rick Stovall <fpstovall>

I've hit another blocking point, in that D's spawn will not let me launch a class method as a thread. I get this error:

[rstovall@gabbie thread_pool]$ dmd -c thread_pool.d
thread_pool.d(44): Error: template std.concurrency.spawn does not match any function template declaration
/usr/include/d/dmd/phobos/std/concurrency.d(401): Error: template std.concurrency.spawn(T...) cannot deduce template function from argument types !()(void delegate(),Tid)

This is not as bad as it seems, because D's scoping model at the module level can provide the needed encapsulation, but it will require another rethink of the design. I'm saving this as a reference point; it does not work, of course.

21. By Rick Stovall <fpstovall>

This is the first version of thread_pool which compiles clean. Still not tested; building the test program is next on my todo list.

20. By Rick Stovall <fpstovall>

Revised to use a full message passing model, with no data sharing. Not tested yet.

19. By Rick Stovall <fpstovall>

This was a first attempt at a D message based thread pool design, but further examination shows it will not work well; there is unintentional shared data. I'm saving this as a checkpoint, but will be taking a new approch to the design in hthe next couple of days.

18. By Rick Stovall <fpstovall>

Updated the conceptual model to consolidate to a single class and to include automatic pool size management.

17. By Rick Stovall <fpstovall>

Started on the thread pool. The mindmap contains the conceptual design for a working thread pool class we'll be implementing here. None of the code is ready to compile.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:nrtb
This branch contains Public information 
Everyone can see this information.

Subscribers