public abstract class Event extends AbstractOpenCLObject
OpenCLObject.ObjectReleaser
releaser
Modifier | Constructor and Description |
---|---|
protected |
Event(OpenCLObject.ObjectReleaser releaser) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isCompleted()
Tests if the action is completed.
|
Event |
register()
Registers this object for automatic releasing on garbage collection.
|
abstract void |
waitForFinished()
Waits until the action has finished (blocking).
|
finalize, getReleaser, release
protected Event(OpenCLObject.ObjectReleaser releaser)
public Event register()
OpenCLObject
OpenCLObjectManager
, you have to release it manually
by calling OpenCLObject.release()
.
Without registering or releasing, a memory leak might occur.
this
to allow calls like
Buffer buffer = clContext.createBuffer(1024).register();
.register
in interface OpenCLObject
register
in class AbstractOpenCLObject
this
public abstract void waitForFinished()
public abstract boolean isCompleted()
true
if the action is completed