//! Sharing a compiled rule across threads.
//!
//! `Engine` and `Logic` are both `Send + Sync`. Wrap them in `Arc` and
//! every worker can evaluate concurrently without locks. Each worker
//! gets its own `Session` so the per-thread arena is isolated.
//!
//! Run:
//!
//! cargo run --example thread_safety
use Engine;
use Arc;
use thread;