Module counter

Module counter 

Source
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
CounterState 🔒
Internal state of a counter
SharedCounterData 🔒
Shared counter data including state and wakers

Traits§

CounterObject
Counter-specific operations trait