[orbis-kernel] Improve kdelete safety

This commit is contained in:
Ivan Chikish 2023-07-15 19:05:14 +03:00
parent 9717128c1f
commit 191a9459af
5 changed files with 12 additions and 5 deletions

View file

@ -40,7 +40,7 @@ struct FileOps {
Thread *thread) = nullptr;
};
struct File {
struct File final {
FileOps *ops;
Ref<RcBase> device;
std::atomic<unsigned> refs{0};