TPIE

v1.1rc1-6-g0c97303
file_count.h
Go to the documentation of this file.
1 // -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-
2 // vi:set ts=4 sts=4 sw=4 noet :
3 // Copyright 2010, 2012, The TPIE development team
4 //
5 // This file is part of TPIE.
6 //
7 // TPIE is free software: you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation, either version 3 of the License, or (at your
10 // option) any later version.
11 //
12 // TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with TPIE. If not, see <http://www.gnu.org/licenses/>
19 #ifndef __TPIE_FILE_CONUT_H__
20 #define __TPIE_FILE_CONUT_H__
21 #include <tpie/types.h>
22 #include <tpie/deprecated.h>
27 
28 namespace tpie {
29 
33 TPIE_DEPRECATED(inline void increment_open_file_count()) {
34  // Does nothing.
35 }
36 
40 TPIE_DEPRECATED(inline void decrement_open_file_count()) {
41  // Does nothing.
42 }
43 
48 memory_size_type open_file_count();
49 
54 memory_size_type available_files();
55 }
56 #endif //__TPIE_FILE_CONUT_H__
TPIE_DEPRECATED(inline void increment_open_file_count())
Deprecated; does nothing.
Definition: file_count.h:33
Standard types.
Macros for deprecating classes, methods and typedefs.
memory_size_type available_files()
Return the additional number of files that can be opened before running out of file descriptors...
memory_size_type open_file_count()
Return the current number of open files.