Changeset 49228 in vbox for trunk/src/VBox
- Timestamp:
- Oct 22, 2013 12:24:28 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 90128
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.cpp
r48955 r49228 23 23 24 24 #include "VirtualBoxImpl.h" 25 #include "HostDnsService.h"26 25 #include <iprt/thread.h> 27 26 #include <iprt/semaphore.h> 27 #include <iprt/critsect.h> 28 #include "HostDnsService.h" 29 30 /* Lockee */ 31 Lockee::Lockee(){ RTCritSectInit(&mLock);} 32 33 34 Lockee::~Lockee(){RTCritSectDelete(&mLock);} 35 36 37 const RTCRITSECT* Lockee::lock() const {return &mLock;} 38 39 /* ALock */ 40 ALock::ALock(const Lockee *l):lck(l) 41 { 42 RTCritSectEnter(const_cast<PRTCRITSECT>(lck->lock())); 43 } 44 45 ALock::~ALock() 46 { 47 RTCritSectLeave(const_cast<PRTCRITSECT>(lck->lock())); 48 } 49 28 50 29 51 HostDnsService::HostDnsService(){} -
trunk/src/VBox/Main/src-server/HostDnsService.h
r49224 r49228 29 29 typedef std::list<com::Utf8Str> Utf8StrList; 30 30 typedef Utf8StrList::iterator Utf8StrListIterator; 31 32 33 class Lockee 34 { 35 public: 36 Lockee(); 37 virtual ~Lockee(); 38 const RTCRITSECT* lock() const; 39 40 private: 41 RTCRITSECT mLock; 42 }; 43 44 45 class ALock 46 { 47 public: 48 ALock(const Lockee *l); 49 ~ALock(); 50 51 private: 52 const Lockee *lck; 53 }; 54 31 55 32 56 class HostDnsService
Note:
See TracChangeset
for help on using the changeset viewer.