public interface OpenCLObject
Modifier and Type | Interface and Description |
---|---|
static interface |
OpenCLObject.ObjectReleaser
Releaser for an
OpenCLObject . |
Modifier and Type | Method and Description |
---|---|
OpenCLObject.ObjectReleaser |
getReleaser()
Returns the releaser object.
|
OpenCLObject |
register()
Registers this object for automatic releasing on garbage collection.
|
void |
release()
Releases this native object.
|
OpenCLObject.ObjectReleaser getReleaser()
void release()
getReleaser().release()
.OpenCLObject register()
OpenCLObjectManager
, you have to release it manually
by calling release()
.
Without registering or releasing, a memory leak might occur.
this
to allow calls like
Buffer buffer = clContext.createBuffer(1024).register();
.this