acl
3.5.3.0
|
#include "fiber_define.h"
类型定义 | |
typedef struct ACL_CHANNEL | ACL_CHANNEL |
函数 | |
FIBER_API ACL_CHANNEL * | acl_channel_create (int elemsize, int bufsize) |
FIBER_API void | acl_channel_free (ACL_CHANNEL *c) |
FIBER_API int | acl_channel_send (ACL_CHANNEL *c, void *v) |
FIBER_API int | acl_channel_send_nb (ACL_CHANNEL *c, void *v) |
FIBER_API int | acl_channel_recv (ACL_CHANNEL *c, void *v) |
FIBER_API int | acl_channel_recv_nb (ACL_CHANNEL *c, void *v) |
FIBER_API int | acl_channel_sendp (ACL_CHANNEL *c, void *v) |
FIBER_API void * | acl_channel_recvp (ACL_CHANNEL *c) |
FIBER_API int | acl_channel_sendp_nb (ACL_CHANNEL *c, void *v) |
FIBER_API void * | acl_channel_recvp_nb (ACL_CHANNEL *c) |
FIBER_API int | acl_channel_sendul (ACL_CHANNEL *c, unsigned long val) |
FIBER_API unsigned long | acl_channel_recvul (ACL_CHANNEL *c) |
FIBER_API int | acl_channel_sendul_nb (ACL_CHANNEL *c, unsigned long val) |
FIBER_API unsigned long | acl_channel_recvul_nb (ACL_CHANNEL *c) |
typedef struct ACL_CHANNEL ACL_CHANNEL |
the fiber channel type definition
在文件 fiber_channel.h 第 15 行定义.
FIBER_API ACL_CHANNEL* acl_channel_create | ( | int | elemsize, |
int | bufsize | ||
) |
create one fiber channel
elemsize | {int} the fixed object size transfered in fiber channel |
bufsize | {int} the buffered of objects in fiber channel |
FIBER_API void acl_channel_free | ( | ACL_CHANNEL * | c | ) |
free fiber channel created by acl_channel_create
c | {ACL_CHANNEL*} created by acl_channel_create |
FIBER_API int acl_channel_recv | ( | ACL_CHANNEL * | c, |
void * | v | ||
) |
read one object from specified channel in block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
v | {void*} will store the result |
FIBER_API int acl_channel_recv_nb | ( | ACL_CHANNEL * | c, |
void * | v | ||
) |
read one object from specified channel in non-block ode
c | {ACL_CHANNEL*} created by acl_channel_create |
v | {void*} will store the result |
FIBER_API void* acl_channel_recvp | ( | ACL_CHANNEL * | c | ) |
get object's addr from specified channel in block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
FIBER_API void* acl_channel_recvp_nb | ( | ACL_CHANNEL * | c | ) |
get the object's addr form specified channel in non-block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
FIBER_API unsigned long acl_channel_recvul | ( | ACL_CHANNEL * | c | ) |
get unsigned integer from specified channel in block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
FIBER_API unsigned long acl_channel_recvul_nb | ( | ACL_CHANNEL * | c | ) |
get one unsigned integer from specified channel in non-block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
FIBER_API int acl_channel_send | ( | ACL_CHANNEL * | c, |
void * | v | ||
) |
send object to specified fiber channel in block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
v | {void*} the object to be transfered |
FIBER_API int acl_channel_send_nb | ( | ACL_CHANNEL * | c, |
void * | v | ||
) |
send object to specified fiber channel in non-block mode, one new object copied from which will be created internal
c | {ACL_CHANNEL*} created by acl_channel_create |
v | {void*} the object to be transfered |
FIBER_API int acl_channel_sendp | ( | ACL_CHANNEL * | c, |
void * | v | ||
) |
send object's addr to specified channel in block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
v | {void*} the addr of the object to be transfered |
FIBER_API int acl_channel_sendp_nb | ( | ACL_CHANNEL * | c, |
void * | v | ||
) |
send the object's addr to specified channel in non-block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
v | {void*} the addr of the object to be transfered |
FIBER_API int acl_channel_sendul | ( | ACL_CHANNEL * | c, |
unsigned long | val | ||
) |
send unsigned integer to specified channel in block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
val | {unsigned long} the integer to be sent |
FIBER_API int acl_channel_sendul_nb | ( | ACL_CHANNEL * | c, |
unsigned long | val | ||
) |
sent unsigned integer to specified channel in non-block mode
c | {ACL_CHANNEL*} created by acl_channel_create |
val | {unsigned long} integer to be sent |