]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-common: Implementation of the sharded threadpool.
authorSomnath Roy <somnath.roy@sandisk.com>
Wed, 14 May 2014 22:50:25 +0000 (15:50 -0700)
committerSomnath Roy <somnath.roy@sandisk.com>
Sat, 31 May 2014 01:44:27 +0000 (18:44 -0700)
commit8369c08e4c00a3777402e93f810d09f279aae376
tree195c2690dcc48649fb1f1f44b7e748ce708fbc04
parent3b884becca32fb5fb9091a80e4603c3de262bdee
ceph-common: Implementation of the sharded threadpool.
Threadpool will only be having a single work queue and internally the
work queue will be having multiple storage data structures.
Based on some logic (which is derived class implementation specific)
the work queue will shard the requests among these storage structures.
Each storage will be guarded by finer grained sunchronization
objects. Sharded threadpool threads will be assigned to work on a
shard based on some algorithm which is again derived class implementation
specific.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
src/common/WorkQueue.cc
src/common/WorkQueue.h