---
title: 调用约束
description: 线程函数的调用顺序约束：
url: "https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/kunpengaccel_kml_0413.html"
---

# 调用约束

线程函数的调用顺序约束：

1. 首先调用  kml_fft(f/h)_init_threads
初始化线程的使用。
2. 然后调用  kml_fft(f/h)_plan_with_nthreads
指定线程数。
3. 最后调用  kml_fft(f/h)_cleanup_threads
释放多线程框架相关的资源。
