P4 to Git Change 1602601 by skudchad@skudchad_test2_win_opencl on 2018/09/06 15:01:00

SWDEV-145570 - [HIP] Implement hipStreamAddCallback and hipStreamQuery

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/15749/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/commandqueue.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/concurrent.hpp#9 edit
This commit is contained in:
foreman
2018-09-06 15:21:28 -04:00
orang tua 27d67ac268
melakukan d305283689
3 mengubah file dengan 28 tambahan dan 0 penghapusan
@@ -163,6 +163,12 @@ void HostQueue::append(Command& command) {
queue_.enqueue(&command);
}
bool HostQueue::isEmpty() {
// Get a snapshot of queue size
return queue_.empty();
}
DeviceQueue::~DeviceQueue() {
delete virtualDevice_;
ScopedLock lock(context().lock());