nx_message.nx
buildroot/runtime/nx_message.nx
about
dependencies 2 imports · 34 importers
diagram shows first 10 each side; +0 more imports, +24 more importers in the complete lists below.
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_actor_role_audio_grader.nxnx_actor_role_audio_grader_test.nxnx_actor_role_game_logic.nxnx_actor_role_game_logic_test.nxnx_actor_role_image_grader.nxnx_actor_role_image_grader_test.nxnx_actor_role_llm.nxnx_actor_role_llm_test.nxnx_actor_role_llm_v2.nxnx_actor_role_llm_v2_autoreg_test.nxnx_actor_role_llm_v2_real_autoreg_test.nxnx_actor_role_llm_v2_real_test.nxnx_actor_role_llm_v2_test.nxnx_bench_companion.nxnx_bench_companion_test.nxnx_bench_companion_timed_test.nxnx_bench_dist_emit_test.nxnx_bench_dist_persist_test.nxnx_bench_scale_dist_emit_test.nxnx_bench_scale_test.nxnx_bench_stress_autoreg_test.nxnx_bench_stress_emit_test.nxnx_bench_v1_vs_v2_test.nxnx_companion_compose_test.nxnx_dual_companion_compose_test.nxnx_dual_real_llm_compose_test.nxnx_dual_real_llm_emit_test.nxnx_message_test.nxnx_quad_companion_compose_test.nxnx_quad_real_emit_test.nxnx_session.nxnx_session_real_llm_compose_test.nxnx_session_test.nxnx_triple_companion_compose_test.nx
structs
| 51 | struct NxMessage |
| 64 | struct NxMailbox |
| 79 | struct NxSubscription |
| 86 | struct NxMessageBus |
consts
| 19 | const NX_MS_KIND_LLM_TOKEN: nx_int = 0 |
| 20 | const NX_MS_KIND_LLM_DONE: nx_int = 1 |
| 21 | const NX_MS_KIND_TOOL_CALL: nx_int = 2 |
| 22 | const NX_MS_KIND_TOOL_RESULT: nx_int = 3 |
| 23 | const NX_MS_KIND_IMAGE_TILE: nx_int = 4 |
| 24 | const NX_MS_KIND_AUDIO_FRAME: nx_int = 5 |
| 25 | const NX_MS_KIND_GAME_ACTION: nx_int = 6 |
| 26 | const NX_MS_KIND_GAME_STATE: nx_int = 7 |
| 27 | const NX_MS_KIND_OPERATOR_INPUT: nx_int = 8 |
| 28 | const NX_MS_KIND_SYSTEM_EVENT: nx_int = 9 |
| 29 | const NX_MS_KIND_ERROR_REPORT: nx_int = 10 |
| 30 | const NX_MS_KIND_N: nx_int = 11 |
| 34 | const NX_MS_MODE_UNICAST: nx_int = 0 // exactly one recipient |
| 35 | const NX_MS_MODE_FANOUT: nx_int = 1 // all subscribers |
| 36 | const NX_MS_MODE_BROADCAST: nx_int = 2 // every actor in scheduler |
| 37 | const NX_MS_MODE_N: nx_int = 3 |
| 41 | const NX_MS_V_DELIVERED: nx_int = 0 |
| 42 | const NX_MS_V_QUEUED: nx_int = 1 // recipient not yet ready |
| 43 | const NX_MS_V_DROPPED_FULL: nx_int = 2 // mailbox full |
| 44 | const NX_MS_V_DROPPED_NO_ROUTE: nx_int = 3 // no recipient subscribed |
| 45 | const NX_MS_V_INVALID: nx_int = 4 |
| 46 | const NX_MS_V_NULL: nx_int = 5 |
| 47 | const NX_MS_V_N: nx_int = 6 |
| 62 | const NX_MS_M_BYTES: nx_int = 64 |
| 75 | const NX_MS_BX_BYTES: nx_int = 64 |
| 84 | const NX_MS_SU_BYTES: nx_int = 16 |
| 97 | const NX_MS_BU_BYTES: nx_int = 64 |
functions
| 101 | func nx_ms_kind_is_valid(k: nx_int) -> nx_int |
| 107 | func nx_ms_mode_is_valid(m: nx_int) -> nx_int called by 1: main |
| 113 | func nx_ms_v_is_valid(v: nx_int) -> nx_int called by 1: main |
| 121 | func nx_ms_bus_new(mb_capacity: nx_int, |
| 140 | func _ms_mb_at(b: *NxMessageBus, idx: nx_int) -> *NxMailbox |
| 147 | func _ms_sub_at(b: *NxMessageBus, idx: nx_int) -> *NxSubscription |
| 156 | func nx_ms_register(b: *NxMessageBus, actor_id: nx_int) -> nx_int |
| 174 | func nx_ms_find_mailbox(b: *NxMessageBus, actor_id: nx_int) -> *NxMailbox |
| 187 | func nx_ms_subscribe(b: *NxMessageBus, |
| 204 | func _ms_mb_push(mb: *NxMailbox, |
| 234 | func nx_ms_send_unicast(b: *NxMessageBus, |
| 250 | func nx_ms_send_fanout(b: *NxMessageBus, |
| 277 | func nx_ms_send_broadcast(b: *NxMessageBus, |
| 305 | func nx_ms_receive(b: *NxMessageBus, recipient: nx_int) -> *NxMessage |
| 319 | func nx_ms_pending(b: *NxMessageBus, recipient: nx_int) -> nx_int |
| 326 | func nx_ms_delivered_total(b: *NxMessageBus, recipient: nx_int) -> nx_int |
| 333 | func nx_ms_dropped_total(b: *NxMessageBus, recipient: nx_int) -> nx_int |
| 340 | func nx_ms_subscription_count(b: *NxMessageBus, kind: nx_int) -> nx_int |