Use create_blocking_marker for WaitEvent implementation

Change-Id: Ib3113f69a14e48b9fe0558d7b455148e478d8eed
This commit is contained in:
Ben Sander
2016-09-01 13:59:55 -05:00
والد 8a4900b679
کامیت 9a99000a62
3فایلهای تغییر یافته به همراه42 افزوده شده و 19 حذف شده
+10
مشاهده پرونده
@@ -273,6 +273,16 @@ void ihipStream_t::locked_wait(bool assertQueueEmpty)
};
#if USE_AV_COPY
// Causes current stream to wait for specified event to complete:
void ihipStream_t::locked_waitEvent(hipEvent_t event)
{
LockedAccessor_StreamCrit_t crit(_criticalData);
// TODO - check state of event here:
crit->_av.create_blocking_marker(event->_marker);
}
#endif
// Create a marker in this stream.
// Save state in the event so it can track the status of the event.