SWDEV-381402 - Remove unused getNullStream() from device. Make stream destructor private.
Change-Id: Idde30a8bfe97a525bd9f9fb50698a5cb14b798fc
This commit is contained in:
1 parent
ea5838320e
commit
06927fd3c1
4 files changed
+9
-19
No files matched your search
@@ -39,20 +39,6 @@ hip::Stream* Device::NullStream(bool skip_alloc) {
|
||||
return null_stream_;
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
hip::Stream* Device::GetNullStream() {
|
||||
if (null_stream_ == nullptr) {
|
||||
null_stream_ = new Stream(this, Stream::Priority::Normal, 0, true);
|
||||
}
|
||||
|
||||
if (null_stream_ == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
// Wait for all active streams before executing commands on the default
|
||||
iHipWaitActiveStreams(null_stream_);
|
||||
return null_stream_;
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
bool Device::Create() {
|
||||
// Create default memory pool
|
||||
@@ -152,7 +138,7 @@ Device::~Device() {
|
||||
}
|
||||
|
||||
if (null_stream_!= nullptr) {
|
||||
delete null_stream_;
|
||||
null_stream_->release();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user