X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/43ac308ea20014761481bc40525496a0bb1d9740..HEAD:/projects/stargazer/user_impl.h diff --git a/projects/stargazer/user_impl.h b/projects/stargazer/user_impl.h index ff7e28a0..c5b30a1d 100644 --- a/projects/stargazer/user_impl.h +++ b/projects/stargazer/user_impl.h @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -42,8 +43,8 @@ namespace STG //----------------------------------------------------------------------------- struct Tariff; -struct Tariffs; -struct Admin; +class Tariffs; +class Admin; class UserImpl; #ifdef USE_ABSTRACT_SETTINGS struct Settings; @@ -66,7 +67,6 @@ class UserImpl : public User const Users * u, const Services & svcs); UserImpl(const UserImpl & u); - virtual ~UserImpl(); int ReadConf(); int ReadStat(); @@ -253,9 +253,11 @@ class UserImpl : public User ScopedConnection m_afterIPConn; void onIPChange(const UserIPs& oldVal, const UserIPs& newVal); - mutable pthread_mutex_t mutex; + mutable std::mutex m_mutex; std::string errorStr; + + double getPassiveTimePart() const; }; //-----------------------------------------------------------------------------