Add tests for locking in trimResidency()

Change-Id: Iddbecedae9cf21a4e5232dcac5d145962623e7d6
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2018-10-30 15:33:55 +01:00
committed by sys_ocldev
parent 53b32bc6ba
commit ef02827cd9
2 changed files with 38 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class WddmResidencyController {
public:
WddmResidencyController(Wddm &wddm, uint32_t osContextId);
std::unique_lock<SpinLock> acquireLock();
MOCKABLE_VIRTUAL std::unique_lock<SpinLock> acquireLock();
std::unique_lock<SpinLock> acquireTrimCallbackLock();
WddmAllocation *getTrimCandidateHead();