diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-22 11:38:17 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-22 11:38:17 +0000 |
commit | 65ae4bc4c122392ec5b85bbadc02e1b7d55623f6 (patch) | |
tree | 1787fd9a58a47465e6f4c3eb253effaa7a7ad715 /chrome/browser/net/dns_master.h | |
parent | e51a2c629fa50d90f608cb6775b54fc39a0b91a0 (diff) | |
download | chromium_src-65ae4bc4c122392ec5b85bbadc02e1b7d55623f6.zip chromium_src-65ae4bc4c122392ec5b85bbadc02e1b7d55623f6.tar.gz chromium_src-65ae4bc4c122392ec5b85bbadc02e1b7d55623f6.tar.bz2 |
Refactor thread naming in the DNS slaves.
BUG=1337196
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_master.h')
-rw-r--r-- | chrome/browser/net/dns_master.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/net/dns_master.h b/chrome/browser/net/dns_master.h index 45dd00e..010f41c 100644 --- a/chrome/browser/net/dns_master.h +++ b/chrome/browser/net/dns_master.h @@ -61,6 +61,8 @@ typedef std::map<std::string, DnsHostInfo> Results; class DnsMaster { public: + // The number of slave processes that will do DNS prefetching + static const int kSlaveCountMax = 8; explicit DnsMaster(TimeDelta shutdown_wait_time); @@ -127,9 +129,6 @@ class DnsMaster { //---------------------------------------------------------------------------- // Methods below this line should only be called by slave processes. - // Thread names can only be set after the thread has been running a bit. - void SetSlaveName(int slave_index); - // GetNextAssignment() gets the next hostname from queue for processing // It is not meant to be public, and should only be used by the slave. // GetNextAssignment() waits on a condition variable if there are no more @@ -154,8 +153,6 @@ class DnsMaster { void PreLockedResolve(const std::string& hostname); bool PreLockedCreateNewSlaveIfNeeded(); // Lazy slave processes creation. - // The number of slave processes that will do DNS prefetching - static const int kSlaveCountMax = 8; // Number of slave processes started early (to help with startup prefetch). static const int kSlaveCountMin = 4; |