2
0

kfdtest: Add event-based synchronization mechanism to queues

Wait4PacketConsumption now can accept an event to wait all packets subbmitted
to be processed.

Change-Id: I1497b7704e892b04d05811b8d3e4742237c1be57
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Este cometimento está contido em:
xinhui pan
2018-08-27 14:56:48 +08:00
cometido por Xinhui Pan
ascendente a9bd6e6f8b
cometimento 9c7cfc0df2
6 ficheiros modificados com 44 adições e 2 eliminações
+2 -1
Ver ficheiro
@@ -116,7 +116,8 @@ void BaseQueue::PlaceAndSubmitPacket(const BasePacket &packet) {
SubmitPacket();
}
void BaseQueue::Wait4PacketConsumption() {
void BaseQueue::Wait4PacketConsumption(HsaEvent *event) {
ASSERT_TRUE(!event) << "Not supported!" << std::endl;
ASSERT_TRUE(WaitOnValue(m_Resources.Queue_read_ptr, RptrWhenConsumed()));
}