aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/efsw/System.hpp
blob: 498e1211531645cd50c8377c626c5f731bf036f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef EFSW_SYSTEM_HPP
#define EFSW_SYSTEM_HPP

#include <efsw/base.hpp>

namespace efsw {

class System {
  public:
	/// Sleep for x milliseconds
	static void sleep( const unsigned long& ms );

	/// @return The process binary path
	static std::string getProcessPath();

	/// Maximize the number of file descriptors allowed per process in the current OS
	static void maxFD();

	/// @return The number of supported file descriptors for the process
	static Uint64 getMaxFD();
};

} // namespace efsw

#endif