anda_brain 0.13.6

🧠 Anda Brain (大脑) — Autonomous Graph Memory for AI Agents
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::sync::{
    Arc,
    atomic::{AtomicBool, AtomicU64},
};

/// One admission lock for both writers. The atomics remain the public status
/// projections; taking a writer slot must happen under this lock.
#[derive(Default)]
pub(crate) struct ProcessingGate {
    pub admission: parking_lot::Mutex<()>,
    pub formation: Arc<AtomicU64>,
    pub maintenance: Arc<AtomicBool>,
}