SWDEV-480209 - Make internal callbacks non-blocking
Change-Id: Ic918d08f341abfd9a7c167d09f9c723cdc43157f
This commit is contained in:
gecommit door
Anusha Godavarthy Surya
bovenliggende
c9dd95bf6c
commit
683a942364
@@ -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;
|
||||
}
|
||||
|
||||
Verwijs in nieuw issue
Block a user