-template<class P, class R, class ...Args> struct is_valid_call : false_type {};
+template<class P, class R, class ...Args>
+struct is_valid_call : false_type {};
template<class S, class R, class ...Args>
struct is_valid_call<S(R &, Args...), R, Args...> : true_type {};
template<class S, class R, class ...Args>
struct is_valid_call<S(R &, Args...), R, Args...> : true_type {};
-struct is_valid_registration<S(R &, typename decay<Args>::type...), S(R &, Args...)> : true_type {};
+struct is_valid_registration<
+ S(R &, typename std::decay<Args>::type...),
+ S(R &, Args...)> : true_type {};
template<class P, class C, class S, class R, class ...Args>
template<class P, class C, class S, class R, class ...Args>
-struct is_valid_registration<P, S(C::*)(R &, Args...)> : is_valid_registration<P, S(R &, Args...)> {};
+struct is_valid_registration<
+ P,
+ S(C::*)(R &, Args...)> : is_valid_registration<P, S(R &, Args...)> {};
template<class P, class R, typename ...Args>
inline int call_timeout(proc_t<P> proc, milliseconds to, R & r, const Args & ... args) {
static_assert(is_valid_call<P, R, Args...>::value, "RPC called with incorrect argument types");
template<class P, class R, typename ...Args>
inline int call_timeout(proc_t<P> proc, milliseconds to, R & r, const Args & ... args) {
static_assert(is_valid_call<P, R, Args...>::value, "RPC called with incorrect argument types");
- return call_m(proc.id, to, r, forward<marshall>(marshall(args...)));
+ return call_m(proc.id, to, r, std::forward<marshall>(marshall(args...)));
// provide at most once semantics by maintaining a window of replies
// per client that that client hasn't acknowledged receiving yet.
// indexed by client nonce.
// provide at most once semantics by maintaining a window of replies
// per client that that client hasn't acknowledged receiving yet.
// indexed by client nonce.
xid_t rep_xid, string & b);
// latest connection to the client
xid_t rep_xid, string & b);
// latest connection to the client
- mutex procs_m_; // protect insert/delete to procs[]
- mutex reply_window_m_; // protect reply window et al
- mutex conns_m_; // protect conns_
+ std::mutex procs_m_; // protect insert/delete to procs[]
+ std::mutex reply_window_m_; // protect reply window et al
+ std::mutex conns_m_; // protect conns_