void RealSenseDevice::close() { die = true; pthread_join(_thread, NULL); rs_delete_context(ctx,0); }
int stopRealsenseModule() { rs_delete_context(ctx, &e); check_error(); return 1; }