/usr/include/vtk-7.1/vtkdiy/no-thread.hpp is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #ifndef DIY_NO_THREAD_HPP
#define DIY_NO_THREAD_HPP
// replicates only the parts of the threading interface that we use
// executes everything in a single thread
namespace diy
{
struct thread
{
thread(void (*f)(void *), void* args):
f_(f), args_(args) {}
void join() { f_(args_); }
static unsigned hardware_concurrency() { return 1; }
void (*f_)(void*);
void* args_;
};
struct mutex {};
struct fast_mutex {};
struct recursive_mutex {};
template<class T>
struct lock_guard
{
lock_guard(T&) {}
};
namespace this_thread
{
inline unsigned long int get_id() { return 0; }
}
}
#endif
|