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

WiimoteReal: Don't block on refresh #3988

Merged
merged 2 commits into from
Jul 10, 2016

Commits on Jul 10, 2016

  1. WiimoteReal: Don't block on refresh

    This changes Refresh() to use the existing scanning thread to scan for
    devices, instead of running the scan on the UI thread and blocking it.
    
    Also makes the UI thread not block when Continuous Scanning is disabled
    and removes duplicated code.
    
    Should fix issue 8992.
    
    Under the hood:
    * The scanning thread is now always active, even when continuous
      scanning is disabled.
    * The initialize code which waits for Wiimotes to be connected also
      uses the scanning thread instead of scanning on yet another thread.
    * The scanning thread now always checks for disconnected devices, to
      avoid Dolphin thinking a Wiimote is still connected when it isn't. So
      we now check if we need new Wiimotes or a Balance Board at scan time.
    leoetlino committed Jul 10, 2016
    Configuration menu
    Copy the full SHA
    c827fdd View commit details
    Browse the repository at this point in the history
  2. WiimoteReal: Don't use a recursive mutex

    This replaces a recursive mutex with a normal mutex.
    leoetlino committed Jul 10, 2016
    Configuration menu
    Copy the full SHA
    80fc5e2 View commit details
    Browse the repository at this point in the history