Fix race condition in resize that was created when
GetType for allocation and Types became async. Change-Id: Ie7036f9481cececf9565d30b25be82480f176ff2
This commit is contained in:
@@ -199,6 +199,7 @@ public class Allocation extends BaseObj {
|
||||
throw new IllegalStateException("Resize only support for 1D allocations at this time.");
|
||||
}
|
||||
mRS.nAllocationResize1D(mID, dimX);
|
||||
mRS.finish(); // Necessary because resize is fifoed and update is async.
|
||||
|
||||
int typeID = mRS.nAllocationGetType(mID);
|
||||
mType = new Type(typeID, mRS);
|
||||
|
||||
Reference in New Issue
Block a user