--- nono/host/netdriver.h 2026/04/29 17:04:37 1.1.1.4 +++ nono/host/netdriver.h 2026/04/29 17:04:40 1.1.1.5 @@ -52,21 +52,21 @@ class NetDriver : public Object // 受信スレッドを起動する (必要なら継承クラス側が呼ぶ) bool InitRecvThread(); - const char *drivername = NULL; // ドライバ名 - EthernetDevice *parent = NULL; // 親 + const char *drivername {}; // ドライバ名 + EthernetDevice *parent {}; // 親 - std::string devpath; // デバイスファイルパス - std::string ifname; // 作成したインタフェース名 + std::string devpath {}; // デバイスファイルパス + std::string ifname {}; // 作成したインタフェース名 // デバイスディスクリプタ。 // ディスクリプタを持つというのは共通なのでディスクリプタはここに置くが // これを Open(), Close() するのはあくまで継承側の仕事で、こちらでは // 初期化と IsOpen() だけ受け持つ。ちょっと責任分解点が気持ち悪いけど。 - int fd = 0; + int fd {}; // 親(Ethernet)デバイスの mutex と condvar - std::mutex *mtx; - std::condition_variable *cv; + std::mutex *mtx {}; + std::condition_variable *cv {}; // 統計情報 uint64 tx_pkts = 0;