Expand description
Counter IPC Object
This module provides a counter-based IPC mechanism similar to Linux’s eventfd. Multiple file descriptors can share the same counter state (for dup/fork).
Behavior:
- read(8 bytes): Returns counter value and resets to 0 (or decrements by 1 in semaphore mode)
- write(8 bytes): Adds value to counter
Structs§
- Counter
- Counter object for eventfd-like IPC
- Counter
State 🔒 - Internal state of a counter
- Shared
Counter 🔒Data - Shared counter data including state and wakers
Traits§
- Counter
Object - Counter-specific operations trait