tin  1.5.9
transport.h
Go to the documentation of this file.
1 // Copyright (c) 2026 Tinverse LLC. All rights reserved.
2 // SPDX-License-Identifier: LicenseRef-Tinverse-Commercial
3 
9 
10 #pragma once
11 
12 #include <utility>
13 
14 #include "tsm/runtime/policy.h"
15 
17 
18 struct local
19 {};
20 
28 {
29  using policy = local;
30 
31  template<typename Runtime, typename Event>
32  [[nodiscard]] static bool send(Runtime& runtime, Event&& event)
33  {
34  return runtime.send_event(std::forward<Event>(event));
35  }
36 };
37 
38 } // namespace tsm::runtime::transport
Definition: transport.h:16
detail::runtime_impl< Definition, Policy, MachinePolicy > Runtime
Definition: runtime.h:531
Runtime policy tags for dispatch and bounded queue admission.
static bool send(Runtime &runtime, Event &&event)
Definition: transport.h:32
Definition: transport.h:19