join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::BumpPlain Class Reference

bump sync policy using a plain cursor, single thread only. More...

#include <bump_allocator.hpp>

Public Member Functions

uint64_t load () const noexcept
 load the cursor.
 
void store (uint64_t value) noexcept
 store the cursor.
 
bool advance (uint64_t &expected, uint64_t desired) noexcept
 advance the cursor.
 

Detailed Description

bump sync policy using a plain cursor, single thread only.

Member Function Documentation

◆ advance()

bool join::BumpPlain::advance ( uint64_t & expected,
uint64_t desired )
inlinenoexcept

advance the cursor.

Parameters
expectedexpected cursor value.
desirednew cursor value.
Returns
always true.

◆ load()

uint64_t join::BumpPlain::load ( ) const
inlinenoexcept

load the cursor.

Returns
cursor value.

◆ store()

void join::BumpPlain::store ( uint64_t value)
inlinenoexcept

store the cursor.

Parameters
valuenew cursor value.

The documentation for this class was generated from the following file: