diff options
author | pixel <pixel> | 2008-01-21 17:19:07 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-01-21 17:19:07 +0000 |
commit | a8f2f2297f4bd240b9b6284dc69ee586aa9fb49b (patch) | |
tree | 7f0393984e79e042d9bde05f65e144c9c07db0f6 /include | |
parent | 3d363ac042ecba8fe9c7091a2a9158dda7ccc0f8 (diff) |
Adding the possibility to count the number of handles.
Diffstat (limited to 'include')
-rw-r--r-- | include/Handle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/Handle.h b/include/Handle.h index 3dbecae..3ef9408 100644 --- a/include/Handle.h +++ b/include/Handle.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Handle.h,v 1.37 2007-05-30 11:57:08 pixel Exp $ */ +/* $Id: Handle.h,v 1.38 2008-01-21 17:19:07 pixel Exp $ */ #ifndef __HANDLE_H__ #define __HANDLE_H__ @@ -65,6 +65,8 @@ class Handle : public Base { void * mmap(off_t = 0, size_t = -1) throw (GeneralException); void munmap() throw (GeneralException); + + static int GetNbHandles(); protected: Handle(int h); int GetHandle() const; @@ -87,6 +89,7 @@ class Handle : public Base { bool mapped; size_t maplength; void * mappedarea; + static int nb_handles; }; Handle & operator<<(Handle &, const String &); |