summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NOTICE10
-rw-r--r--libs/utils/Threads.cpp3
2 files changed, 13 insertions, 0 deletions
diff --git a/NOTICE b/NOTICE
index 20062013ea..5560999009 100644
--- a/NOTICE
+++ b/NOTICE
@@ -53,6 +53,16 @@ Media Codecs
These files are Copyright 1998 - 2009 PacketVideo, but released under
the Apache2 License.
+ =========================================================================
+ == NOTICE file corresponding to the section 4 d of ==
+ == the Apache License, Version 2.0, ==
+ == in this case for Additional Codecs code. ==
+ =========================================================================
+
+Additional Codecs
+These files are Copyright 2003-2010 VisualOn, but released under
+the Apache2 License.
+
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp
index f6c55e4d89..ad9a94f594 100644
--- a/libs/utils/Threads.cpp
+++ b/libs/utils/Threads.cpp
@@ -774,6 +774,9 @@ int Thread::_threadLoop(void* user)
self->mExitPending = true;
self->mLock.lock();
self->mRunning = false;
+ // clear thread ID so that requestExitAndWait() does not exit if
+ // called by a new thread using the same thread ID as this one.
+ self->mThread = thread_id_t(-1);
self->mThreadExitedCondition.broadcast();
self->mLock.unlock();
break;