OSDN Git Service

Change ordering of memory allocation and calling Thread::run().
authorAravind Akella <aakella@google.com>
Tue, 7 Oct 2014 21:13:12 +0000 (14:13 -0700)
committerAravind Akella <aakella@google.com>
Tue, 7 Oct 2014 21:20:12 +0000 (21:20 +0000)
commit7830ef3dd0ff3749d974c2dd85a8fa59dc47aeca
treee6ad68ea20f80b48138a310b50b9cea44dce3afa
parent78639c22acfa5e56d87fd6fe8340d083536b29fc
Change ordering of memory allocation and calling Thread::run().

In some cases this is causing a crash as device.poll is called with
NULL.

Bug: 17896339
Change-Id: Id431599f2c661338c355c7081b6602f8449a9198
services/sensorservice/SensorService.cpp