acl-dev / acl

C/C++ server and network library, including coroutine,redis client,http/https/websocket,mqtt, mysql/postgresql/sqlite client with C/C++ for Linux, Android, iOS, MacOS, Windows, etc..

Home Page:https://acl-dev.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

acl_fiber_signum issue

pengwang7 opened this issue · comments

/**
 * Get the signal number got from other fiber
 * @param fiber {ACL_FIBER*} the specified fiber, if NULL the current running
 * @retur {int} the signal number got
 */
int acl_fiber_signum(ACL_FIBER *fiber)
{
	if (fiber) {
		fiber = acl_fiber_running();
	}
	return fiber ? fiber->signum : 0;
}

根据注释,应该是 fiber 为 NULL的情况下,才获取当前正在运行的fiber

是的,问题已修复,谢谢指出此问题。

---zsx