![]() |
DDraceNetwork Documentation
|
#include "aio.h"#include "io.h"#include "lock.h"#include "mem.h"#include "sphore.h"#include "thread.h"#include <cstdlib>Classes | |
| struct | ASYNCIO |
| struct | BUFFERS |
Macros | |
| #define | ASYNC_BUFSIZE (8 * 1024) |
| #define | ASYNC_LOCAL_BUFSIZE (64 * 1024) |
Enumerations | |
| enum | { ASYNCIO_RUNNING , ASYNCIO_CLOSE , ASYNCIO_EXIT } |
Functions | |
| static void | buffer_ptrs (ASYNCIO *aio, struct BUFFERS *buffers) |
| static void | aio_handle_free_and_unlock (ASYNCIO *aio) |
| static void | aio_thread (void *user) |
| ASYNCIO * | aio_new (IOHANDLE io) |
| static unsigned int | buffer_len (ASYNCIO *aio) |
| static unsigned int | next_buffer_size (unsigned int cur_size, unsigned int need_size) |
| void | aio_lock (ASYNCIO *aio) |
| void | aio_unlock (ASYNCIO *aio) |
| void | aio_write_unlocked (ASYNCIO *aio, const void *buffer, unsigned size) |
| void | aio_write (ASYNCIO *aio, const void *buffer, unsigned size) |
| void | aio_write_newline_unlocked (ASYNCIO *aio) |
| void | aio_write_newline (ASYNCIO *aio) |
| int | aio_error (ASYNCIO *aio) |
| void | aio_close (ASYNCIO *aio) |
| void | aio_wait (ASYNCIO *aio) |
| void | aio_free (ASYNCIO *aio) |
| #define ASYNC_BUFSIZE (8 * 1024) |
| #define ASYNC_LOCAL_BUFSIZE (64 * 1024) |
|
static |
|
static |
|
static |
|
static |