commit | 82acf915ebf2b06be59efb59a8960d024b1f2ece | [log] [tgz] |
---|---|---|
author | Colby Ranger <cranger@google.com> | Tue May 08 13:28:26 2012 -0700 |
committer | Colby Ranger <cranger@google.com> | Tue May 08 15:21:06 2012 -0700 |
tree | 28d3044f78267aa2a54c599f5de73d7e9fcd760e | |
parent | 6240942650aaa653c7a3568b6de6b4b2ec3697f5 [diff] |
Fix possible synchronization issue in TaskThunk. When cancel is called, it is executed in the caller thread, which is different from the thread run() is executing on. Only one thread may use the context at a time, so a big lock is needed around the two methods. Change-Id: I41c203761cef5ca84914c3ace8e33b704212cdc2