MCPcopy Create free account
hub / github.com/argumentcomputer/ix / collect_list_shared

Function collect_list_shared

crates/ffi/src/lean_env.rs:592–594  ·  view source on GitHub ↗

Collect list elements as LeanShared handles for cross-thread use. The caller should have already MT-marked the parent list via `LeanShared::new`, so `lean_mark_mt` on each element is a single `lean_is_st` check (fast no-op).

(list: LeanList<LeanBorrowed<'_>>)

Source from the content-addressed store, hash-verified

590
591/// Global cache for Names, shared across all threads.
592#[derive(Default)]
593pub struct GlobalCache {
594 names: DashMap<*mut lean_ffi::include::lean_object, Name>,
595}
596
597impl GlobalCache {

Callers 1

decode_envFunction · 0.85

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected