⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 benchmark_performance.cpp

📁 最新的版本ACE-5.6.8,刚从外文网上搬下,与大家分享.
💻 CPP
字号:
// $Id: Benchmark_Performance.cpp 80826 2008-03-04 14:51:23Z wotte $

#define  ACE_BUILD_SVC_DLL
#include "Benchmark_Performance.h"
#include "ace/Basic_Types.h"

ACE_RCSID(Synch_Benchmarks, Benchmark_Performance, "$Id: Benchmark_Performance.cpp 80826 2008-03-04 14:51:23Z wotte $")

#if defined (ACE_HAS_THREADS)

// Global variables (used by the dynamically linked services).
ACE_Svc_Export int synch_count;
int buffer;

// Initialize the static variables.
/* static */
sig_atomic_t Benchmark_Performance::done_ = 0;

Benchmark_Performance_Test_Base::Benchmark_Performance_Test_Base (void)
  : Benchmark_Base (Benchmark_Base::PERFORMANCE)
{
}

sig_atomic_t
Benchmark_Performance::done (void)
{
  return Benchmark_Performance::done_;
}

void
Benchmark_Performance::done (sig_atomic_t d)
{
  Benchmark_Performance::done_ = d;
}

int
Benchmark_Performance::init (int, ACE_TCHAR **)
{
  return 1;
}

int
Benchmark_Performance::info (ACE_TCHAR **, size_t) const
{
  return -1;
}

int
Benchmark_Performance::fini (void)
{
  return -1;
}

void *
Benchmark_Performance::svc_run (Benchmark_Performance *bp)
{
  return (void *) (bp->svc () == -1 ? (intptr_t) -1 : (intptr_t) 0);
}

#endif /* ACE_HAS_THREADS */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -