Core

Threading

OaThreadPool

Work-stealing thread pool with P-core/E-core detection, NUMA affinity, and CPU pinning. All threading primitives in one header: oa/core/thread.h.

OaChannel

Bounded MPMC channel. Send() blocks if full. Recv()blocks if empty. Zero-allocation steady state.

OaRwLock

Reader-writer lock wrapping any type. Read() for shared access,Write() for exclusive. RAII scoped guards.

Rules

  • Never use raw std::thread + std::mutex
  • Never use std::async / std::future
  • Never hand-roll thread pools