2023-01-11 22:29:45 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct ACL_FIBER_MUTEX;
|
|
|
|
|
|
|
|
namespace acl {
|
|
|
|
|
|
|
|
class fiber;
|
|
|
|
|
2023-06-11 18:34:41 +08:00
|
|
|
struct FIBER_CPP_API fiber_mutex_stat {
|
2023-01-11 22:29:45 +08:00
|
|
|
fiber_mutex_stat(void) : fb(NULL), waiting(NULL) {}
|
|
|
|
~fiber_mutex_stat(void) {}
|
|
|
|
|
|
|
|
fiber *fb;
|
|
|
|
ACL_FIBER_MUTEX *waiting;
|
|
|
|
std::vector<ACL_FIBER_MUTEX*> holding;
|
|
|
|
};
|
|
|
|
|
2023-06-11 18:34:41 +08:00
|
|
|
struct FIBER_CPP_API fiber_mutex_stats {
|
2023-01-11 22:29:45 +08:00
|
|
|
fiber_mutex_stats(void) {}
|
|
|
|
~fiber_mutex_stats(void);
|
|
|
|
|
|
|
|
std::vector<fiber_mutex_stat> stats;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace acl
|