Introduction to TPipe
TPipe is used to manage resources such as device memory in a unified manner. A kernel function must initialize only one TPipe object. It provides the following main functions:
- Memory resource management: The InitBuffer API of TPipe can be used to allocate memory to TQue and TBuf for initializing the memory of the queue and the memory of temporary variables, respectively.
- Synchronization event management: The AllocEventID and ReleaseEventID APIs of TPipe can be used to allocate and release event IDs for synchronization control.
Parent topic: TPipe