XFile setup async_event_ in the restore constructor

This commit is contained in:
Dr. Chat
2015-12-27 17:15:21 -06:00
committed by Ben Vanik
parent fefc2036b3
commit 5c94062110

View File

@@ -23,7 +23,9 @@ XFile::XFile(KernelState* kernel_state, vfs::File* file)
async_event_ = threading::Event::CreateAutoResetEvent(false);
}
XFile::XFile() : XObject(kTypeFile) {}
XFile::XFile() : XObject(kTypeFile) {
async_event_ = threading::Event::CreateAutoResetEvent(false);
}
XFile::~XFile() {
// TODO(benvanik): signal that the file is closing?