Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(24)

Issue 1678062: Adding thread_pool to the GCL namespace.

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by ChrisM
Modified:
15 years ago
Reviewers:
Alasdair, Adam, Jeffrey Yasskin, lawrence
CC:
google-concurrency-library_googlegroups.com
Visibility:
Public.

Description

Adds in a very basic thread pool (no ability to add new events). Contains basic functionality for pausing/starting the pool and counting the number of active threads. Support for delayed execution is offloaded to the alarm service. A more complex form which allows enqueue of new tasks will be added later.

Patch Set 1 #

Patch Set 2 : Updated code to get threads to pass + a couple of new test. #

Total comments: 12

Patch Set 3 : Removed the num_active_threads function for the time being. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -3 lines) Patch
M Makefile View 3 chunks +4 lines, -3 lines 0 comments Download
M include/source.h View 1 chunk +2 lines, -0 lines 0 comments Download
M include/thread.h View 2 chunks +6 lines, -0 lines 0 comments Download
A include/thread_pool.h View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A src/thread_pool.cc View 1 2 1 chunk +113 lines, -0 lines 1 comment Download
A testing/thread_pool_test.cc View 1 2 1 chunk +249 lines, -0 lines 0 comments Download

Messages

Total messages: 6
ChrisM
Hey guys, ping since the thread pool is now working and passing all of its ...
15 years, 5 months ago (2010-08-09 07:07:48 UTC) #1
Alasdair
Just a couple of quick comments. Will take a closer look tomorrow. http://codereview.appspot.com/1678062/diff/2001/3004 File include/thread_pool.h ...
15 years, 5 months ago (2010-08-17 01:41:49 UTC) #2
ChrisM
http://codereview.appspot.com/1678062/diff/2001/3004 File include/thread_pool.h (right): http://codereview.appspot.com/1678062/diff/2001/3004#newcode67 include/thread_pool.h:67: vector<atomic_int> thread_states; On 2010/08/17 01:41:50, Alasdair wrote: > Would ...
15 years, 4 months ago (2010-08-27 04:01:40 UTC) #3
Lawrence_Crowl.org
Why does the thread pool need to be a friend of the source source and ...
15 years, 3 months ago (2010-09-24 17:15:11 UTC) #4
ChrisM
This is currently being re-written (i've got it half implemented at the moment, though not ...
15 years, 3 months ago (2010-09-24 17:23:21 UTC) #5
Alasdair
15 years ago (2011-01-14 19:49:51 UTC) #6
http://codereview.appspot.com/1678062/diff/9001/src/thread_pool.cc
File src/thread_pool.cc (right):

http://codereview.appspot.com/1678062/diff/9001/src/thread_pool.cc#newcode83
src/thread_pool.cc:83: 
Note from meeting, 14/1/11. When we get here, we've popped a value off the
queue. We shouldn't break (even if shutting down) without somehow consuming the
value. (Or putting it back on the queue???)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b