async-write

Name

async-write -- 

Synopsis



int         async_init                      (void);
void        async_write                     (alert_t *alert);
void        async_exit                      (void);

Description

Details

async_init ()

int         async_init                      (void);

This function initialize the asynchronous IO thread.

Returns : 0 on success, -1 on error.


async_write ()

void        async_write                     (alert_t *alert);

This queue the alert to be written ASAP using the rwrite_write() function.

alert : the alert to send.


async_exit ()

void        async_exit                      (void);

Kill the asynchronous IO thread, and flush all pending IO.