Displaying 4 results from an estimated 4 matches for "this_thread".
2017 May 19
2
noinline changes between 3.8 and 4.0?
...ck_duration;
using rep = duration::rep;
using period = duration::period;
using time_point = time_point<ticking_clock, duration>;
static constexpr bool is_steady = true;
static time_point now() noexcept;
};
void f(long &elapsed_time) {
auto start = ticking_clock::now();
this_thread::sleep_for(tick_duration(71));
auto finish = ticking_clock::now();
auto dur = finish - start;
elapsed_time = dur.count();
}
The functions defined in the resultant IR are marked `noinline` in 4.0 but
do not have that same attribute in 3.8. Running the unoptimized IR through
`opt -O2 <...
2016 Dec 02
9
3.9.1-rc2 is ready for testing
Hi,
I just tagged 3.9.1-rc2, so testing can begin. There was a bug found in
-rc1 before I could send out a release announcement, so I decided to merge
the fix and tag -rc2 to save some testing cycles.
We can always use more testers, so if you are interested in helping, let
me know.
Thanks,
Tom
2013 Nov 03
1
How to make an R package that uses Boost.Thread, qualified to be published on CRAN or shared by the most
....cpp
-------------------------------
#include "rcpp_hello_world.h"
#include "boost/lambda/lambda.hpp"
#include <iostream>
#include <iterator>
#include <algorithm>
#include <vector>
#include "boost/thread.hpp"
void wait(int seconds) {
boost::this_thread::sleep(boost::posix_time::seconds(seconds));
}
void thread() {
for (int i = 0; i < 5; i++) {
wait(1);
std::cout << i << std::endl;
}
}
SEXP rcpp_hello_world(){
using namespace Rcpp ;
using namespace boost::lambda;
std::vector<int> a;
a.push_back(1...
2016 Dec 04
2
[Release-testers] 3.9.1-rc2 is ready for testing
...LES11SP3 fails during tests.
>
> [ 92%] Building CXX object unittests/MC/CMakeFiles/MCTests.dir/
> StringTableBuilderTest.cpp.o
> /tmp/llvm/utils/release/rc2/llvm.src/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp:37:27:
> error: no member named 'yield' in namespace 'std::this_thread'
> std::this_thread::yield();
> ~~~~~~~~~~~~~~~~~~^
> [ 92%] Building CXX object unittests/MC/CMakeFiles/
> MCTests.dir/TargetRegistry.cpp.o
> 1 error generated.
>
>
>
> It looks like it's only present when _GLIBCXX_USE_SCHED_YIELD. I'll see
&...