acl/lib_fiber/cpp/include/fiber/fiber_mutex_stat.hpp
2023-06-11 18:34:41 +08:00

26 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