stlab 2.3.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
utility.hpp
Go to the documentation of this file.
1/*
2 Copyright 2015 Adobe
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5*/
6
7/**************************************************************************************************/
8
9#ifndef STLAB_CONCURRENCY_UTILITY_HPP
10#define STLAB_CONCURRENCY_UTILITY_HPP
11
15
18
19/**************************************************************************************************/
20
21#if 0
22
23#include <thread>
24#include <functional>
25#include <cstdio>
26
27// useful macro for debugging
28#define STLAB_TRACE(S) \
29 std::printf("%s:%d %d %s\n", __FILE__, __LINE__, \
30 (int)std::hash<std::thread::id>()(std::this_thread::get_id()), S);
31
32#endif
33
34/**************************************************************************************************/
35
36#endif // STLAB_CONCURRENCY_UTILITY_HPP
Blocking wait helpers for futures (await, await_for, deprecated blocking_get, …).
Factory functions for already-resolved futures.