Make closing drm workers blocking
This change fixes segfault happening when driver is used in parallel processes. Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
parent
6a39bcc395
commit
45810d9918
|
@ -143,7 +143,7 @@ void DrmMemoryManager::releaseBufferObject(uint32_t rootDeviceIndex) {
|
||||||
|
|
||||||
void DrmMemoryManager::commonCleanup() {
|
void DrmMemoryManager::commonCleanup() {
|
||||||
if (gemCloseWorker) {
|
if (gemCloseWorker) {
|
||||||
gemCloseWorker->close(false);
|
gemCloseWorker->close(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint32_t rootDeviceIndex = 0; rootDeviceIndex < pinBBs.size(); ++rootDeviceIndex) {
|
for (uint32_t rootDeviceIndex = 0; rootDeviceIndex < pinBBs.size(); ++rootDeviceIndex) {
|
||||||
|
|
Loading…
Reference in New Issue