SWDEV-480209 - Make internal callbacks non-blocking

Change-Id: Ic918d08f341abfd9a7c167d09f9c723cdc43157f


[ROCm/clr commit: 683a942364]
This commit is contained in:
Anusha GodavarthySurya authored and Anusha Godavarthy Surya committed 2025-01-10 02:16:11 -05:00
1 parent 16f14e4b00
commit 08c92f4793
11 files changed
+38 -34

No files matched your search

+3 -2
View File
@@ -190,10 +190,11 @@ bool Event::resetStatus(int32_t status) {
}
// ================================================================================================
bool Event::setCallback(int32_t status, Event::CallBackFunction callback, void* data) {
bool Event::setCallback(int32_t status, Event::CallBackFunction callback, void* data,
bool blocking) {
assert(status >= CL_COMPLETE && status <= CL_QUEUED && "invalid status");
CallBackEntry* entry = new CallBackEntry(status, callback, data);
CallBackEntry* entry = new CallBackEntry(status, callback, data, blocking);
if (entry == NULL) {
return false;
}