/usr/include/vtk-7.1/vtkdiy/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 39 40 41 42 43 44 45 | #ifndef DIY_THREAD_H
#define DIY_THREAD_H
#ifdef DIY_NO_THREADS
#include "no-thread.hpp"
#else
#include "thread/fast_mutex.h"
#if __cplusplus > 199711L // C++11
#include <thread>
#include <mutex>
namespace diy
{
using std::thread;
using std::mutex;
using std::recursive_mutex;
namespace this_thread = std::this_thread;
// TODO: replace with our own implementation using std::atomic_flag
using fast_mutex = tthread::fast_mutex;
template<class Mutex>
using lock_guard = std::unique_lock<Mutex>;
}
#else
#include "thread/tinythread.h"
namespace diy
{
using tthread::thread;
using tthread::mutex;
using tthread::fast_mutex;
using tthread::recursive_mutex;
using tthread::lock_guard;
namespace this_thread = tthread::this_thread;
}
#endif
#endif
#include "critical-resource.hpp"
#endif
|