cpp: TNonBlockingServer: Use separate monitor for max queue
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:32 +0000 (05:19 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:32 +0000 (05:19 +0000)
commita0dbfefbf3d09eebdc784f3fe6049c8bbc62a498
tree17f873e6cd020a1dfbccb319229341c731698050
parentb9db49c6776bde3b06ce8a5ceb32c873f8de4592
cpp: TNonBlockingServer: Use separate monitor for max queue

We were using the same monitor for max queue size and empty queue, this
meant the notifies might be going to the wrong place.

This change significantly reduces the time spent in futex calls in
loaded servers.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920667 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/concurrency/ThreadManager.cpp