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:
cometido por
Xinhui Pan
ascendente
a9bd6e6f8b
cometimento
9c7cfc0df2
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador