• R/O
  • SSH

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Comparing performance of a task queued to an existing thread vs. new thread for each task.


Commit MetaInfo

Révision76283aa87338e18208f8e5c157fd481b496202eb (tree)
l'heure2017-06-03 09:47:21
AuteurEric Hopper <hopper@omni...>
CommiterEric Hopper

Message de Log

auto return type not supported for lambda in C++11.

Change Summary

Modification

diff -r 55a9fdf10c98 -r 76283aa87338 test_thread.cpp
--- a/test_thread.cpp Mon Apr 03 16:49:33 2017 -0700
+++ b/test_thread.cpp Fri Jun 02 17:47:21 2017 -0700
@@ -13,7 +13,7 @@
1313 template <typename T>
1414 calls_p_sec_t calls_per_second(const T &thecall, unsigned int interval)
1515 {
16- auto now = []() -> auto {
16+ auto now = []() -> decltype(::std::chrono::high_resolution_clock::now()) {
1717 return ::std::chrono::high_resolution_clock::now();
1818 };
1919 typedef ::std::chrono::duration<long double> timediff_t;