OSTaskSuspend usage and description
OSTaskSuspend() - suspend a task
Description: Call this function to suspend a task, if the priority of the task transferred to OSTaskSuspend() is the task to be suspended or
OS_PRIO_SELF, then this task will be suspended.
Parameters: prio: The priority of the task needs to be suspended. If OS_PRIO_SELF is specified, then this task will hang itself and then happen again.
Returns: OS_NO_ERR: if the requested task is suspended.
OS_TASK_SUSPEND_IDLE: If you want to suspend an idle task
OS_PRIO_INVALID: I want to suspend the task priority is not reasonable
OS_TASK_SUSPEND_PRIO: The task that needs to be suspended does not exist.
Note: Be very careful when calling, if you want to suspend a task waiting for an event (mail, message, queue), when the event arrives
You will prevent this task from running.
Note: Need to be used in pairs with OSTaskResume() recovery pending tasks
Hequanqingnuo is the professional manufacturer of Cell Phone accessories with over 7 years experience.products are involved in Mobile Phone Battery,QI Car Charger,iPhone Charger Case, Power Bank and etc.
We are involved in indifferent series of mobile phone batteries such as IPhone Battery , Huawei Battery and Samsung Battery , IPhone Battery Case is our latest developed and hot sale products.HQQNUO owns a complete and scientific quality management system and focuses on creditworthiness , we abides by contract, guarantees product quality, and adopts the marketing concept of mufti-variety management characteristics and small profits with high sales.Products passed RoHS /CE/FCC Certificate, lead-free technology, recyclable.We insist on the principle of 'Quality First, equality and mutual benefit , joint development, and Service the Best'.
Welcome to visit our factory and look farward to establish win-win business relationship with you.
Cell Phone Accessories,Phone Cases,Cell Phone Cases,Iphone Cases
Shenzhen Hequanqingnuo Electronic Technology Co., Ltd. , https://www.hqqnbattery.com