static_assert(is_valid_registration<P, F>::value, "RSM handler registered with incorrect argument types");
lock ml(rsm_mutex);
procs[proc.id] = marshalled_func<F>::wrap(f, c);
static_assert(is_valid_registration<P, F>::value, "RSM handler registered with incorrect argument types");
lock ml(rsm_mutex);
procs[proc.id] = marshalled_func<F>::wrap(f, c);