Skip to content

add API function unload_tracking_module. #3339

Merged
dorodnic merged 2 commits into
realsenseai:masterfrom
doronhi:unload_tm
Mar 2, 2019
Merged

add API function unload_tracking_module. #3339
dorodnic merged 2 commits into
realsenseai:masterfrom
doronhi:unload_tm

Conversation

@doronhi

@doronhi doronhi commented Feb 27, 2019

Copy link
Copy Markdown
Contributor

Used to cleam _tm_context object if tracking module is not used, so it will be available for other applications.
Can be used prior to query_devices() to prevent connecting to tracking modules or afterwards to release all tracking modules.

…ject if tracking module is not used, so it will be available for other applications.
@dorodnic dorodnic added libtm T260 series Intel® T265 library labels Feb 27, 2019
@dorodnic

Copy link
Copy Markdown
Contributor

Related to #2924

* query_devices locks the tracking module.
* If the tracking module device is should be removed so that other applications could find it.
*/
void rs2_context_unload_tracking_module(rs2_context* ctx, rs2_error** error);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add function name to realsense.def file

Comment thread include/librealsense2/h/rs_context.h Outdated

/**
* Removes tracking module.
* query_devices locks the tracking module.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description of both the original issue and the solution is not clear - please review and adjust.

modified function description.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants