mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
28 lines
433 B
C++
28 lines
433 B
C++
#pragma once
|
|
|
|
struct ACL_FIBER_MUTEX;
|
|
|
|
namespace acl {
|
|
|
|
class fiber;
|
|
|
|
struct FIBER_CPP_API fiber_mutex_stat
|
|
{
|
|
fiber_mutex_stat(void) : fb(NULL), waiting(NULL) {}
|
|
~fiber_mutex_stat(void) {}
|
|
|
|
fiber *fb;
|
|
ACL_FIBER_MUTEX *waiting;
|
|
std::vector<ACL_FIBER_MUTEX*> holding;
|
|
};
|
|
|
|
struct FIBER_CPP_API fiber_mutex_stats
|
|
{
|
|
fiber_mutex_stats(void) {}
|
|
~fiber_mutex_stats(void);
|
|
|
|
std::vector<fiber_mutex_stat> stats;
|
|
};
|
|
|
|
} // namespace acl
|