mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-14 15:05:35 +02:00
added Environment::processorCount()
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Environment.h
|
||||
//
|
||||
// $Id: //poco/1.3/Foundation/include/Poco/Environment.h#2 $
|
||||
// $Id: //poco/1.3/Foundation/include/Poco/Environment.h#3 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Core
|
||||
@@ -94,6 +94,11 @@ public:
|
||||
/// of the first Ethernet adapter found on the system.
|
||||
///
|
||||
/// Throws a SystemException if no Ethernet adapter is available.
|
||||
|
||||
static unsigned processorCount();
|
||||
/// Returns the number of processors installed in the system.
|
||||
///
|
||||
/// If the number of processors cannot be determined, returns 1.
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user