Buy Contact Devices Home

nsdsp_get_abort_id

This function returns the abort id of the NSDSP object. The abort id can be passed to nsdspif_abort function from another thread to abort the connection to the NSDSP programmer.

Syntax

unsigned int nsdsp_get_abort_id(
        nsdsp_t           nsdsp
);

Parameters

nsdsp - a reference to the NSDSP object returned by nsdsp_connect function

Return

The function returns the abort id, or zero if the operation fails.

Notes

Call this function in the thread which uses the NSDSP after establishing a connection. Then pass the abort id to the thread where you may need to abort the operation.

The abort id is a number, not a reference to the object. Therefore, it is safe to pass it to nsdspif_abort even after the NSDSP object has been freed. In this case nsdspif_abort does nothing and returns zero.

See nsdspif_abort for an example.

 

Minimum library version - 180

Northern Software Home NSDSP Supported Devices Contact Us Purchase/View Cart

© 2007-2026 Northern Software Inc. All Rights Reserved.