diff options
Diffstat (limited to 'src/3rdParty/efsw/System.hpp')
| -rwxr-xr-x | src/3rdParty/efsw/System.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/System.hpp b/src/3rdParty/efsw/System.hpp new file mode 100755 index 0000000..498e121 --- /dev/null +++ b/src/3rdParty/efsw/System.hpp | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #ifndef EFSW_SYSTEM_HPP | ||
| 2 | #define EFSW_SYSTEM_HPP | ||
| 3 | |||
| 4 | #include <efsw/base.hpp> | ||
| 5 | |||
| 6 | namespace efsw { | ||
| 7 | |||
| 8 | class System { | ||
| 9 | public: | ||
| 10 | /// Sleep for x milliseconds | ||
| 11 | static void sleep( const unsigned long& ms ); | ||
| 12 | |||
| 13 | /// @return The process binary path | ||
| 14 | static std::string getProcessPath(); | ||
| 15 | |||
| 16 | /// Maximize the number of file descriptors allowed per process in the current OS | ||
| 17 | static void maxFD(); | ||
| 18 | |||
| 19 | /// @return The number of supported file descriptors for the process | ||
| 20 | static Uint64 getMaxFD(); | ||
| 21 | }; | ||
| 22 | |||
| 23 | } // namespace efsw | ||
| 24 | |||
| 25 | #endif | ||
