|
tin
1.5.9
|
#include <transport.h>

Classes | |
| struct | readable_slot |
| struct | writable_slot |
Public Member Functions | |
| status | try_acquire_write (writable_slot &out) |
| bool | acquire_write (writable_slot &out) |
| status | try_commit_write (writable_slot const &written) |
| bool | commit_write (writable_slot const &written) |
| status | try_acquire_read (readable_slot &out) const |
| bool | acquire_read (readable_slot &out) const |
| status | try_release_read (readable_slot const &read) |
| bool | release_read (readable_slot const &read) |
| bool | empty () const |
| bool | full () const |
| std::size_t | size () const |
Fixed-capacity shared-memory style slot channel.
This models the zero-copy lifecycle: writer acquires a slot, fills it, commits it, reader acquires the committed slot, consumes it, then releases it. The storage here is ordinary local memory so it can be used in tests and freestanding builds. Operating-system shared-memory mapping, cache maintenance, atomics, and interprocess synchronization are platform adapter responsibilities layered around this lifecycle.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |