-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retain the event that will be used for waiting.
When a non-blocking operation with native source memory is enqueued, the event will be used to determine when the source object can be released for garbage collection. But when the associated event was released manually, before the wait operation could start, this caused a painful crash in clWaitForEvents. Increasing the reference count of the event with clRetainEvent will prevent this.
- Loading branch information
Showing
1 changed file
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters