Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

FdMultiPoolLease.h

Go to the documentation of this file.
00001 #ifndef FdMultiPoolLease_H 00002 #define FdMultiPoolLease_H 00003 00004 #include "FdMultiPool.h" 00005 00006 BOREALIS_NAMESPACE_BEGIN; 00007 00008 /* 00009 This class holds a leased FD from an FdMultiPool object. The lease is 00010 ascquired when this object is isntantiated, and is released when this 00011 object is destroyed. 00012 */ 00013 class FdMultiPoolLease 00014 { 00015 public: 00016 FdMultiPoolLease(FdMultiPool & pool, string pathname) 00017 throw (std::exception); 00018 00019 ~FdMultiPoolLease(); 00020 00021 // Gives the FD that this lease holds. 00022 int getFd() const; 00023 00024 private: 00025 FdMultiPool & _pool; 00026 string _pathname; 00027 int _fd; 00028 }; 00029 00030 BOREALIS_NAMESPACE_END; 00031 00032 #endif

Generated on Fri Nov 12 15:15:21 2004 for Borealis by doxygen 1.3.8