am 7830ef3d
: Change ordering of memory allocation and calling Thread::run().
* commit '7830ef3dd0ff3749d974c2dd85a8fa59dc47aeca': Change ordering of memory allocation and calling Thread::run().
This commit is contained in:
commit
5acc751ffe
@ -185,14 +185,14 @@ void SensorService::onFirstRef()
|
|||||||
}
|
}
|
||||||
|
|
||||||
mWakeLockAcquired = false;
|
mWakeLockAcquired = false;
|
||||||
run("SensorService", PRIORITY_URGENT_DISPLAY);
|
|
||||||
mLooper = new Looper(false);
|
mLooper = new Looper(false);
|
||||||
|
|
||||||
const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT;
|
const size_t minBufferSize = SensorEventQueue::MAX_RECEIVE_BUFFER_EVENT_COUNT;
|
||||||
mSensorEventBuffer = new sensors_event_t[minBufferSize];
|
mSensorEventBuffer = new sensors_event_t[minBufferSize];
|
||||||
mSensorEventScratch = new sensors_event_t[minBufferSize];
|
mSensorEventScratch = new sensors_event_t[minBufferSize];
|
||||||
mMapFlushEventsToConnections = new SensorEventConnection const * [minBufferSize];
|
mMapFlushEventsToConnections = new SensorEventConnection const * [minBufferSize];
|
||||||
|
|
||||||
mInitCheck = NO_ERROR;
|
mInitCheck = NO_ERROR;
|
||||||
|
run("SensorService", PRIORITY_URGENT_DISPLAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user