diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-03 12:58:34 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-04 15:59:11 +0000 |
commit | 3abd363e0bf07f0467fb9f66815833330f68b223 (patch) | |
tree | edcdd7ca18b348606bc324b6046b6ef15be820ad /staging_vespalib/src/tests/clock/clock_test.cpp | |
parent | 4136ec96afc319fa272970cd65acd633283a63d7 (diff) |
Hide implementation to reduce FastOS_ visibility.
Diffstat (limited to 'staging_vespalib/src/tests/clock/clock_test.cpp')
-rw-r--r-- | staging_vespalib/src/tests/clock/clock_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staging_vespalib/src/tests/clock/clock_test.cpp b/staging_vespalib/src/tests/clock/clock_test.cpp index c8c93272e85..bf7e3773055 100644 --- a/staging_vespalib/src/tests/clock/clock_test.cpp +++ b/staging_vespalib/src/tests/clock/clock_test.cpp @@ -2,6 +2,7 @@ #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/util/clock.h> +#include <vespa/fastos/thread.h> using vespalib::Clock; using fastos::TimeStamp; @@ -20,7 +21,7 @@ Test::Main() Clock clock(0.050); FastOS_ThreadPool pool(0x10000); - ASSERT_TRUE(pool.NewThread(&clock, nullptr) != nullptr); + ASSERT_TRUE(pool.NewThread(clock.getRunnable(), nullptr) != nullptr); fastos::SteadyTimeStamp start = clock.getTimeNS(); FastOS_Thread::Sleep(5000); fastos::SteadyTimeStamp stop = clock.getTimeNS(); |