ao_send_acq.h
Sending acquired memory blocks

Notes

This module provides an abstraction for sending acquired memory blocks to an opaque destination.

Include

ao_send_ptr.h
ao_time.h

Types

ao_send_acq_t

typedef ao_send_ptr_t ao_send_acq_t;

Represents the sending of an acquired memory block.

ao_send_acq_proc_t

typedef ao_send_ptr_proc_t ao_send_acq_proc_t;

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

Functions

ao_send_acq

ao_send_acq_from

void ao_send_acq     (ao_send_acq_t * s, ao_time_t timeout);
void ao_send_acq_from(ao_send_acq_t * s, ao_time_t timeout, ao_time_t beginning);

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

ao_send_acq_forever

void ao_send_acq_forever(ao_send_acq_t * s);

Sends an acquired memory block indefinitely in a blocking fashion.

ao_send_acq_try

void ao_send_acq_try(ao_send_acq_t * s);

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

ao_send_acq_begin

ao_send_acq_end

void ao_send_acq_begin(ao_send_acq_t * s);
void ao_send_acq_end  (ao_send_acq_t * s);

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