1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! Synchronization primitives with loom support for concurrency testing.
//!
//! This module provides type aliases that switch between standard library
//! sync primitives and loom's mocked versions based on the `loom` feature flag.
//!
//! # Usage
//!
//! ```rust,no_run
//! use velesdb_core::sync::{Arc, RwLock, Mutex};
//!
//! // Works with both std and loom
//! let data = Arc::new(RwLock::new(42));
//! ```
//!
//! # Testing with Loom
//!
//! ```bash
//! cargo +nightly test --features loom --test loom_tests
//! ```
//!
//! # EPIC-023: Loom Concurrency Testing
// ============================================================================
// Arc
// ============================================================================
pub use Arc;
pub use Arc;
// ============================================================================
// Mutex (Note: We use parking_lot in production, but loom provides its own)
// ============================================================================
pub use Mutex;
pub use Mutex;
// ============================================================================
// RwLock
// ============================================================================
pub use RwLock;
pub use RwLock;
// ============================================================================
// Atomics
// ============================================================================
pub use ;
pub use ;
// ============================================================================
// Thread spawning (for loom tests)
// ============================================================================
pub use thread;
pub use thread;