Nits

上级 fec7fd72
...@@ -29,7 +29,7 @@ struct uwq : public referenced, public rcu_freed { ...@@ -29,7 +29,7 @@ struct uwq : public referenced, public rcu_freed {
friend struct uwq_worker; friend struct uwq_worker;
static uwq* alloc(vmap* vmap, filetable *ftable); static uwq* alloc(vmap* vmap, filetable *ftable);
bool haswork(); bool haswork() const;
bool tryworker(); bool tryworker();
void setuentry(uptr uentry); void setuentry(uptr uentry);
...@@ -45,7 +45,6 @@ private: ...@@ -45,7 +45,6 @@ private:
uwq& operator=(const uwq&); uwq& operator=(const uwq&);
uwq(const uwq& x); uwq(const uwq& x);
proc* allocworker(); proc* allocworker();
void finishworkers();
void finish(); void finish();
NEW_DELETE_OPS(uwq); NEW_DELETE_OPS(uwq);
...@@ -57,6 +56,6 @@ private: ...@@ -57,6 +56,6 @@ private:
uptr ustack_; uptr ustack_;
std::atomic<u64> uref_; std::atomic<u64> uref_;
uwq_worker* worker_[NCPU]; uwq_worker* worker_[NWORKERS];
}; };
#endif #endif
...@@ -153,7 +153,7 @@ uwq::~uwq(void) ...@@ -153,7 +153,7 @@ uwq::~uwq(void)
} }
bool bool
uwq::haswork(void) uwq::haswork(void) const
{ {
if (len_ == nullptr) if (len_ == nullptr)
return false; return false;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论