--- nono/host/hostcom.h 2026/04/29 17:05:11 1.1.1.1 +++ nono/host/hostcom.h 2026/04/29 17:05:34 1.1.1.4 @@ -12,7 +12,6 @@ #include "hostdevice.h" #include "comdriver.h" -#include "monitor.h" #include "spscqueue.h" class HostCOMDevice : public HostDevice @@ -29,12 +28,12 @@ class HostCOMDevice : public HostDevice uint64 write_bytes; // ホストへの書き出しバイト数 uint64 read_bytes; // ホストからの読み込みバイト数 - int txq_peak; // キューのおおよその最大使用量 - int rxq_peak; // キューのおおよその最大使用量 + uint txq_peak; // キューのおおよその最大使用量 + uint rxq_peak; // キューのおおよその最大使用量 }; public: - HostCOMDevice(const std::string& objname_); + HostCOMDevice(Device *parent_, const std::string& objname_); ~HostCOMDevice() override; void SetLogLevel(int loglevel_) override; @@ -61,5 +60,5 @@ class HostCOMDevice : public HostDevice // 統計情報 struct stat_t stat {}; - Monitor monitor { this }; + Monitor *monitor {}; };