UnregisterExternalAllocator
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_api_v2.h>
- Library file: libge_runner_v2.so
Function Usage
Destroys the allocator registered by the user based on the stream. This applies to the scenario where the user's memory pool is used.
Prototype
1 | Status UnregisterExternalAllocator(const void *const stream) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
stream |
Input |
Specifies the stream on which the Allocator to be destroyed is located. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: The setting is successful. FAILED: The setting fails. |
Constraints
- Before destroying an Allocator, call this API to deregister the Allocator.
- If the stream to be deregistered does not exist or this API is called for multiple times to deregister the stream, no operation will be performed on this API and a success message is returned.
Parent topic: GESession