Rename id() to fiber_id() in fiber.hpp

This commit is contained in:
zhengshuxin 2023-01-17 17:18:56 +08:00
parent e43f7e2410
commit 70e825f513
3 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ public:
* ID号
* @return {unsigned int}
*/
static unsigned int id(const fiber& fb);
static unsigned int fiber_id(const fiber& fb);
/**
* API

View File

@ -41,7 +41,7 @@ unsigned int fiber::self(void)
return acl_fiber_self();
}
unsigned int fiber::id(const fiber& fb)
unsigned int fiber::fiber_id(const fiber& fb)
{
ACL_FIBER *f = fb.get_fiber();
return f ? acl_fiber_id(f) : 0;

View File

@ -68,7 +68,7 @@ private:
}
void show(const acl::fiber_mutex_stat& stat) {
printf("fiber-%d:\r\n", acl::fiber::id(*stat.fb));
printf("fiber-%d:\r\n", acl::fiber::fiber_id(*stat.fb));
std::vector<acl::fiber_frame> stack;
acl::fiber::stacktrace(*stat.fb, stack, 50);