Lines Matching refs:lock
959 // Poll for events. Mind the wake lock dance!
960 // We hold a wake lock at all times except during epoll_wait(). This works due to some
962 // a kernel wake lock. However, once the last pending event has been read, the device
963 // driver will release the kernel wake lock. To prevent the system from going to sleep
964 // when this happens, the EventHub holds onto its own user wake lock while the client
972 mLock.unlock(); // release lock before poll, must be before release_wake_lock
978 mLock.lock(); // reacquire lock after poll, must be after acquire_wake_lock
1622 { // acquire lock
1657 } // release lock
1661 // Acquire and release the lock to ensure that the event hub has not deadlocked.
1662 mLock.lock();