lp:~fpstovall/nrtb/D_tech_demos
- Get this branch:
- bzr branch lp:~fpstovall/nrtb/D_tech_demos
Branch merges
- Rick Stovall: Approve
-
Diff: 2348 lines (+2303/-0)8 files modifiedD_lang/testing/candidate_libs/splat.d (+1754/-0)
D_lang/testing/candidate_libs/splat.html (+269/-0)
D_lang/testing/str_socket/Makefile (+30/-0)
D_lang/testing/str_socket/SocketStringTransciever.mm (+49/-0)
D_lang/testing/str_socket/socket_test.d (+43/-0)
D_lang/testing/thread_pool/Makefile (+30/-0)
D_lang/testing/thread_pool/thread_pool.d (+81/-0)
D_lang/testing/thread_pool/thread_pool.mm (+47/-0)
Related bugs
Related blueprints
Branch information
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