summaryrefslogtreecommitdiff
path: root/ace
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
commit8bd6e377f1dbf26ef222df6c69110b4bdd60b6d7 (patch)
tree4caf1bc78eebe82376cd54d49ad5d775d632cdfc /ace
parentc794c06acbc6cc26a4022a5242c727fa700557b0 (diff)
downloadATCD-8bd6e377f1dbf26ef222df6c69110b4bdd60b6d7.tar.gz
ChangeLogTag:Tue Oct 14 17:13:46 2003 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'ace')
-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;