commit | 131aef8c94292cc530da2fd91ee98d1432352959 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jan 27 11:53:35 2012 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Jan 27 11:53:35 2012 -0800 |
tree | 58bc993648e93dc6e84d701457f0cda0b0ec82cb | |
parent | 6622e5dcf77fd1af7bdec45466da590471b53ba0 [diff] [blame] |
Only allow one thread to abort at a time. Found when looking to see if Google Earth had fixed their JNI bug yet. Change-Id: I8768248625869d344ba04ecf4fec06047f76c3ce
diff --git a/src/runtime.h b/src/runtime.h index 2b3fd7e..f950add 100644 --- a/src/runtime.h +++ b/src/runtime.h
@@ -285,6 +285,8 @@ // A pointer to the active runtime or NULL. static Runtime* instance_; + static Mutex abort_lock_; + DISALLOW_COPY_AND_ASSIGN(Runtime); };