Skip to content

Commit a5a6abf

Browse files
committed
revert changes in acl_event
1 parent 4fb2814 commit a5a6abf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/acl_event.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
812812
#endif
813813

814814
context = command_queue->context;
815+
815816
event = l_get_unused_event(context);
816817
if (event == 0) {
817818
acl_context_callback(context, "Could not allocate an event or command");
@@ -860,6 +861,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
860861
events[i]->depend_on_me.pop_back();
861862
}
862863
}
864+
863865
// Return event back to free pool
864866
event->depend_on.clear();
865867
l_return_event_to_free_pool(event);
@@ -869,6 +871,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
869871

870872
if (event) {
871873
// Success!
874+
872875
// Normally, the command info union usage is determined only
873876
// by the command type. But in the case of CL_COMMAND_MAP_BUFFER
874877
// and CL_COMMAND_UNMAP_MEM_OBJECT, we need this extra bit to know
@@ -916,6 +919,7 @@ cl_int acl_create_event(cl_command_queue command_queue, cl_uint num_events,
916919
printf(" Notify: Event [%d] has been created:\n", event->id);
917920
acl_dump_event(event);
918921
}
922+
919923
acl_track_object(ACL_OBJ_EVENT, event);
920924
} else {
921925
acl_context_callback(context, "Could not allocate an event");

0 commit comments

Comments
 (0)