summaryrefslogtreecommitdiff
path: root/libs/thread/example/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/thread/example/thread.cpp')
-rw-r--r--libs/thread/example/thread.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/thread/example/thread.cpp b/libs/thread/example/thread.cpp
index c21a3b5ea8..ebd77977e5 100644
--- a/libs/thread/example/thread.cpp
+++ b/libs/thread/example/thread.cpp
@@ -1,7 +1,7 @@
// Copyright (C) 2001-2003
// William E. Kempf
//
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/thread/thread.hpp>
@@ -14,7 +14,7 @@ struct thread_alarm
void operator()()
{
boost::xtime xt;
- boost::xtime_get(&xt, boost::TIME_UTC);
+ boost::xtime_get(&xt, boost::TIME_UTC_);
xt.sec += m_secs;
boost::thread::sleep(xt);
@@ -25,7 +25,7 @@ struct thread_alarm
int m_secs;
};
-int main(int argc, char* argv[])
+int main()
{
int secs = 5;
std::cout << "setting alarm for 5 seconds..." << std::endl;