commit | e71b9147756ab4da306e4c16461ad23936769603 | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Sat Mar 12 16:08:12 2016 -0800 |
committer | Brian Carlstrom <bdc@google.com> | Sat Mar 12 21:32:52 2016 -0800 |
tree | 497e16299cfd324400925dfb12182e2c6565d863 | |
parent | 1ef5bf839e5b467e8014c751390045cd02b4128f [diff] [blame] |
system/core: Make Thread::run threadName argument required Bug: 27557176 Change-Id: Iae83a1e5489c86c2858fc8481f246b8480f0eec4
diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index 6dda6b5..def739f 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp
@@ -668,6 +668,8 @@ status_t Thread::run(const char* name, int32_t priority, size_t stack) { + LOG_ALWAYS_FATAL_IF(name == nullptr, "thread name not provided to Thread::run"); + Mutex::Autolock _l(mLock); if (mRunning) {