ao_recv_acq.h
Receiving acquired memory blocks

Notes

This module provides an abstraction for receiving acquired memory blocks from an opaque source.

Include

ao_recv_ptr.h
ao_time.h

Types

ao_recv_acq_t

typedef ao_recv_ptr_t ao_recv_acq_t;

Represents the receiving of an acquired memory block.

ao_recv_acq_proc_t

typedef ao_recv_ptr_proc_t ao_recv_acq_proc_t;

Represents a function beginning or ending a receiving of an acquired memory block.

Functions

ao_recv_acq

ao_recv_acq_from

void ao_recv_acq     (ao_recv_acq_t * r, ao_time_t timeout);
void ao_recv_acq_from(ao_recv_acq_t * r, ao_time_t timeout, ao_time_t beginning);

Receives an acquired memory block in a blocking fashion with a timeout and an optional beginning.

ao_recv_acq_forever

void ao_recv_acq_forever(ao_recv_acq_t * r);

Receives an acquired memory block indefinitely in a blocking fashion.

ao_recv_acq_try

void ao_recv_acq_try(ao_recv_acq_t * r);

Receives an acquired memory block in a non-blocking fashion.

ao_recv_acq_begin

ao_recv_acq_end

void ao_recv_acq_begin(ao_recv_acq_t * r);
void ao_recv_acq_end  (ao_recv_acq_t * r);

Begins or ends, respectively, a receiving of an acquired memory block.