Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SoftButtonManager Race Conditions #1251

Merged
merged 8 commits into from May 23, 2019

Conversation

joeljfischer
Copy link
Contributor

@joeljfischer joeljfischer commented Apr 26, 2019

Fixes #1177, #1234

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

Smoke tests + unit tests

Summary

This PR fixes several longstanding state issues in the SoftButtonManager by simplifying the logic using NSOperation. One such issue is when transitioning states really close together, only one state would transition due to race conditions.

Changelog

Bug Fixes
  • Fixed race conditions in the Soft Button Manager

Tasks Remaining:

  • Unit tests

CLA

@joeljfischer joeljfischer added the bug A defect in the library label Apr 26, 2019
@joeljfischer joeljfischer self-assigned this Apr 26, 2019
@joeljfischer joeljfischer changed the title WIP: Fix SoftButtons transitioning states WIP: Fix SoftButtonManager Race Conditions Apr 26, 2019
@joeljfischer joeljfischer changed the title WIP: Fix SoftButtonManager Race Conditions Fix SoftButtonManager Race Conditions May 3, 2019
Copy link
Contributor

@NicoleYarroch NicoleYarroch left a comment

Choose a reason for hiding this comment

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

Left a couple of comments.

The infinite attempts to send failed artworks has been fixed!

SmartDeviceLink/SDLSoftButtonManager.h Show resolved Hide resolved
SmartDeviceLink/SDLSoftButtonManager.m Outdated Show resolved Hide resolved
Copy link
Contributor

@NicoleYarroch NicoleYarroch left a comment

Choose a reason for hiding this comment

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

Left some comments about documentation

SmartDeviceLink/SDLSoftButtonManager.h Show resolved Hide resolved
SmartDeviceLink/SDLSoftButtonTransitionOperation.h Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants