Destroy
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Function
Releases resources.
Prototype
1 | __aicore__ inline void Destroy() |
Restrictions
This API is called to repeatedly apply for and release TPipe resources. After a TPipe object is created, you can call Destroy to manually release resources.
Returns
None
Example
1 2 3 4 5 6 | AscendC::TPipe pipe; // Pipe memory management object AscendC::TQue<AscendC::TPosition::VECOUT, 2> que; // Output the data queue management object, with TPosition set to VECOUT. uint8_t num = 2; uint32_t len = 128; pipe.InitBuffer(que, num, len); pipe.Destroy(); |
Parent topic: TPipe