]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Made the HttpMsgPointerT::lock() and unlock() methods protected
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Aug 2010 23:37:04 +0000 (17:37 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Aug 2010 23:37:04 +0000 (17:37 -0600)
It would be difficult for the caller to use them correctly, and it is probably
not necessary for the caller to use them at all.

src/HttpMsg.h

index f8d90f881709dc1f8be5e435809fbed367f4e753..fc0242ce22308de976840360983730f95bb32c5d 100644 (file)
@@ -189,6 +189,7 @@ public:
     operator const Msg *() const { return msg; }
     // add more as needed
 
+protected:
     void lock() { if (msg) HTTPMSGLOCK(msg); } ///< prevent msg destruction
     void unlock() { HTTPMSGUNLOCK(msg); } ///< allows/causes msg destruction