OSDN Git Service

Fix a race condition in TimedEventQueue, an event may be cancelled while we're waitin...
authorAndreas Huber <andih@google.com>
Mon, 12 Apr 2010 20:10:20 +0000 (13:10 -0700)
committerAndreas Huber <andih@google.com>
Mon, 12 Apr 2010 20:15:48 +0000 (13:15 -0700)
commitea1d6712fe11f59ee9a89cc1cfec3aaa114a5233
tree51f314ad4cc46109717da1240592aadf4fdcea35
parent36acfbc2b8df6e62f2d583933eca3a49265279a6
Fix a race condition in TimedEventQueue, an event may be cancelled while we're waiting for its scheduled time to come in which case we'd be removing it from the queue twice.

Change-Id: I4e42e318fd5373d1f352f54027d4bf823126266d
related-to-bug: 2585276
media/libstagefright/TimedEventQueue.cpp
media/libstagefright/include/TimedEventQueue.h