diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2003-10-14 22:15:23 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2003-10-14 22:15:23 +0000 |
commit | 8bd6e377f1dbf26ef222df6c69110b4bdd60b6d7 (patch) | |
tree | 4caf1bc78eebe82376cd54d49ad5d775d632cdfc /ace | |
parent | c794c06acbc6cc26a4022a5242c727fa700557b0 (diff) | |
download | ATCD-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.cpp | 10 |
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; |