acl
3.5.3.0
|
类型定义 | |
typedef struct ACL_FIBER_COND | ACL_FIBER_COND |
函数 | |
FIBER_API ACL_FIBER_COND * | acl_fiber_cond_create (unsigned flag) |
FIBER_API void | acl_fiber_cond_free (ACL_FIBER_COND *cond) |
FIBER_API int | acl_fiber_cond_wait (ACL_FIBER_COND *cond, ACL_FIBER_EVENT *event) |
FIBER_API int | acl_fiber_cond_timedwait (ACL_FIBER_COND *cond, ACL_FIBER_EVENT *event, int delay_ms) |
FIBER_API int | acl_fiber_cond_signal (ACL_FIBER_COND *cond) |
typedef struct ACL_FIBER_COND ACL_FIBER_COND |
fiber_cond object look like pthread_cond_t which is used between threads and fibers
在文件 fiber_cond.h 第 17 行定义.
FIBER_API ACL_FIBER_COND* acl_fiber_cond_create | ( | unsigned | flag | ) |
create fiber cond which can be used in fibers more or threads mode
flag | {unsigned} current not used, just for the future extend |
FIBER_API void acl_fiber_cond_free | ( | ACL_FIBER_COND * | cond | ) |
free cond created by acl_fiber_cond_create
cond | {ACL_FIBER_COND *} |
FIBER_API int acl_fiber_cond_signal | ( | ACL_FIBER_COND * | cond | ) |
signle the cond which will wakeup one waiter for the cond to be signaled
cond | {ACL_FIBER_COND *} |
FIBER_API int acl_fiber_cond_timedwait | ( | ACL_FIBER_COND * | cond, |
ACL_FIBER_EVENT * | event, | ||
int | delay_ms | ||
) |
wait for cond event to be signaled with the specified timeout
cond | {ACL_FIBER_COND *} |
FIBER_API int acl_fiber_cond_wait | ( | ACL_FIBER_COND * | cond, |
ACL_FIBER_EVENT * | event | ||
) |
wait for cond event to be signaled
cond | {ACL_FIBER_COND *} |
event | {ACL_FIBER_EVENT *} must be owned by the current caller |