summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2003-10-14 22:15:23 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2003-10-14 22:15:23 +0000
commit2304658a30d1c62d57234ee395f4cea8b1bcd7a7 (patch)
tree4caf1bc78eebe82376cd54d49ad5d775d632cdfc /ace/OS.cpp
parentc5acda25989d78e7b77f96c1e6db98285ab7054e (diff)
downloadATCD-2304658a30d1c62d57234ee395f4cea8b1bcd7a7.tar.gz
ChangeLogTag:Tue Oct 14 17:13:46 2003 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index d18a5bce379..d2c1ec2af99 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -7680,8 +7680,9 @@ long
ACE_OS::num_processors (void)
{
ACE_OS_TRACE ("ACE_OS::num_processors");
-
-#if defined (ACE_WIN32) || defined (ACE_WIN64)
+#if defined (ACE_HAS_PHARLAP)
+ return 1;
+#elif defined (ACE_WIN32) || defined (ACE_WIN64)
SYSTEM_INFO sys_info;
::GetSystemInfo (&sys_info);
return sys_info.dwNumberOfProcessors;
@@ -7696,8 +7697,9 @@ long
ACE_OS::num_processors_online (void)
{
ACE_OS_TRACE ("ACE_OS::num_processors_online");
-
-#if defined (ACE_WIN32) || defined (ACE_WIN64)
+#if defined (ACE_HAS_PHARLAP)
+ return 1;
+#elif defined (ACE_WIN32) || defined (ACE_WIN64)
SYSTEM_INFO sys_info;
::GetSystemInfo (&sys_info);
return sys_info.dwNumberOfProcessors;