SWDEV-480209 - Make internal callbacks non-blocking
Change-Id: Ic918d08f341abfd9a7c167d09f9c723cdc43157f
Dieser Commit ist enthalten in:
1 Ursprung
c9dd95bf6c
Commit
683a942364
11 Dateien geändert
+38
-34
Keine Dateien entsprechen Ihrer Suche
@@ -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;
|
||||
}
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren