summaryrefslogtreecommitdiff
path: root/plugins/HTTPServer/src/FileShareNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HTTPServer/src/FileShareNode.h')
-rw-r--r--plugins/HTTPServer/src/FileShareNode.h30
1 files changed, 3 insertions, 27 deletions
diff --git a/plugins/HTTPServer/src/FileShareNode.h b/plugins/HTTPServer/src/FileShareNode.h
index 032bc34510..c47117291f 100644
--- a/plugins/HTTPServer/src/FileShareNode.h
+++ b/plugins/HTTPServer/src/FileShareNode.h
@@ -58,8 +58,8 @@ public://, DWORD dwAllowedIP, DWORD dwAllowedMask, int nMaxDownloads );
CLFileShareNode * pclNext;
//CLHttpUser * pclAddHttpUser( HANDLE hConnection, in_addr stAddr );
//bool bRemoveHttpUser( CLHttpUser * pclUser );
- bool bAddUser(CLShareUser * pclUser);
- bool bRemoveUser(CLShareUser * pclUser);
+ bool bAddUser(CLShareUser *pclUser);
+ bool bRemoveUser(CLShareUser *pclUser);
bool bAnyUsers() {
return pclCurrentUsers != nullptr;
}
@@ -72,31 +72,7 @@ private:
};
-extern CLFileShareNode * pclFirstNode;
+extern CLFileShareNode *pclFirstNode;
extern mir_cs csFileShareListAccess;
-class CLFileShareListAccess {
- bool bLocked;
-public:
- CLFileShareListAccess() {
- bLocked = false;
- Lock();
- }
- ~CLFileShareListAccess() {
- Unlock();
- }
- void Lock() {
- if (bLocked)
- return;
- mir_cslock lck(csFileShareListAccess);
- bLocked = true;
- }
- void Unlock() {
- if (!bLocked)
- return;
- bLocked = false;
- }
-
-};
-
#endif \ No newline at end of file