Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7fdfa6e authored by Zhihai Xu's avatar Zhihai Xu
Browse files

remove a read lock to work around a platform deadlock problem.

remove the lock in getStatefunction to work around a platform
deadlock problem.and also for read access, it is safe to remove
the lock to save CPU power

bug:11655066
Change-Id: Iddc0ada04010d95ae7d5fbc93ab837ebfc025b7a
parent 3c76e7b3
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -203,11 +203,10 @@ class AdapterProperties {
     * @return the mState
     */
    int getState() {
        synchronized (mObject) {
            if (VDBG) debugLog("State = " + mState);
        /* remove the lock to work around a platform deadlock problem */
        /* and also for read access, it is safe to remove the lock to save CPU power */
        return mState;
    }
    }

    /**
     * @return the mBondedDevices