diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-02-04 18:11:20 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-02-20 17:09:56 -0500 |
commit | 3211addd3426161d7ee1f5cc8d191418a013018d (patch) | |
tree | 4a649bdef64d819249110aed65a73d5320dae09f /src/mongo/client/connpool.h | |
parent | 56202c537bfa6de56ca98d8caa04eaf095b7ef62 (diff) | |
download | mongo-3211addd3426161d7ee1f5cc8d191418a013018d.tar.gz |
SERVER-13339 Cleanup some SConscript and includes
Diffstat (limited to 'src/mongo/client/connpool.h')
-rw-r--r-- | src/mongo/client/connpool.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/mongo/client/connpool.h b/src/mongo/client/connpool.h index 97fb445e336..e027f182301 100644 --- a/src/mongo/client/connpool.h +++ b/src/mongo/client/connpool.h @@ -40,14 +40,13 @@ namespace mongo { - class Shard; class DBConnectionPool; /** * not thread safe * thread safety is handled by DBConnectionPool */ - class MONGO_CLIENT_API PoolForHost { + class PoolForHost { public: // Sentinel value indicating pool has no cleanup limit @@ -165,8 +164,7 @@ namespace mongo { c.conn()... } */ - class MONGO_CLIENT_API DBConnectionPool : public PeriodicTask { - + class DBConnectionPool : public PeriodicTask { public: DBConnectionPool(); @@ -268,9 +266,9 @@ namespace mongo { }; - extern MONGO_CLIENT_API DBConnectionPool pool; + extern DBConnectionPool pool; - class MONGO_CLIENT_API AScopedConnection : boost::noncopyable { + class AScopedConnection : boost::noncopyable { public: AScopedConnection() { _numConnections.fetchAndAdd(1); } virtual ~AScopedConnection() { _numConnections.fetchAndAdd(-1); } @@ -297,7 +295,7 @@ namespace mongo { clean up nicely (i.e. the socket gets closed automatically when the scopeddbconnection goes out of scope). */ - class MONGO_CLIENT_API ScopedDbConnection : public AScopedConnection { + class ScopedDbConnection : public AScopedConnection { public: /** the main constructor you want to use throws UserException if can't connect |