public class RmmEventHandlerResourceAdaptor<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>
wrapped
Constructor and Description |
---|
RmmEventHandlerResourceAdaptor(C wrapped,
RmmTrackingResourceAdaptor<?> tracker,
RmmEventHandler handler,
boolean debug)
Create a new logging resource adaptor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getHandle()
Returns a pointer to the underlying C++ class that implements rmm::mr::device_memory_resource
|
String |
toString() |
getWrapped, releaseWrapped
public RmmEventHandlerResourceAdaptor(C wrapped, RmmTrackingResourceAdaptor<?> tracker, RmmEventHandler handler, boolean debug)
wrapped
- the memory resource to get callbacks for. This should not be reused.handler
- the handler that will get the callbackstracker
- the tracking event handlerdebug
- true if you want all the callbacks, else falsepublic long getHandle()
RmmDeviceMemoryResource
public void close()
close
in interface RmmDeviceMemoryResource
close
in interface AutoCloseable
close
in class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>
Copyright © 2024. All rights reserved.