# set\_number\_pipeline

Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_set_number_pipeline.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_set_number_pipeline.html)

Sets the pipeline number. By calling this API the system will pick up the number of
        top threads to do their task placement and schedule.

set_number_pipeline()Copy to clipboard

## Parameters

| **Parameters** | **API type** | **Data type** | **Description** |
| --- | --- | --- | --- |
| number\_of\_pipeline\_thread | Java | long | Defines how many pipeline tasks this application wants<br>                            to set. The range of parameters is 0 to the maximum number of pipeline<br>                            threads |
| number\_of\_pipeline\_thread | Native | unit32 | Defines how many pipeline tasks this application wants<br>                            to set. The range of parameters is 0 to the maximum number of pipeline<br>                            threads |
| ret\_val | Native | int8\_t& | On success this is the actual return value from the API.<br><br><br>                            <br><ul class="ul"><br>                                    <li class="li">0: Success to reset pipeline number</li><br><br>                                    <li class="li">-1: Unregister failed, no registered callback found</li><br><br>                                    <li class="li">-2: Failed to establish session; check that <a href="https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_set_pkg.html">set_pkg</a><br>                                        was called before this API</li><br><br>                                </ul> |
|  |  |  |  |

## Returns

| **Return** | **API type** | **Data type** | **Description** |
| --- | --- | --- | --- |
| response | Java | int | <ul class="ul" id="reference_k1x_5q1_2zb__properties_qqn_hs1_2zb_spyrz_10-19-23-1632-19-900"><br>                                <br>                                    <li class="li">0: Success to reset pipeline number</li><br><br>                                <br>                                <br>                                    <li class="li">-1: Unregister failed, no registered callback found</li><br><br>                                <li class="li">-2: Failed to establish session; check that <a href="https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_set_pkg.html">set_pkg</a> was<br>                                    called before this API</li><br><br>                                <br>                            </ul> |
| response | Native | qesdk\_transaction\_status | See [QESDK transaction status for Native APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/native_qesdk_class.html) for usage details. Use qesdk\_transaction\_status to confirm API call invocation. If successful, use the `ret` value for the actual API return value object. |
|  |  |  |  |

**Parent Topic:** [QAPE subsystem APIs](https://docs.qualcomm.com/doc/80-PK177-134/topic/qape_apis.html)

Last Published: Nov 14, 2024

[Previous Topic
get\_max\_number\_of\_pipeline\_thread](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/qape_get_max_number_of_pipeline_thread.md) [Next Topic
reset\_number\_pipeline](https://docs.qualcomm.com/bundle/publicresource/80-PK177-134/topics/qape_reset_number_pipeline.md)