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>
[ROCm/ROCR-Runtime commit: 9c7cfc0df2]
Этот коммит содержится в:
коммит произвёл
Xinhui Pan
родитель
094073ff74
Коммит
718af9febc
@@ -63,7 +63,7 @@ class BaseQueue {
|
||||
/** Wait for all the packets submitted to the queue to be consumed. (i.e. wait until RPTR=WPTR).
|
||||
* Note that all packets being consumed is not the same as all packets being processed.
|
||||
*/
|
||||
virtual void Wait4PacketConsumption();
|
||||
virtual void Wait4PacketConsumption(HsaEvent *event = NULL);
|
||||
/** @brief Place packet and submit it in one function
|
||||
*/
|
||||
virtual void PlaceAndSubmitPacket(const BasePacket &packet);
|
||||
|
||||
Ссылка в новой задаче
Block a user