commit | 0878d654e7be8c9666579e22522704d8887415cc | [log] [tgz] |
---|---|---|
author | Ian Rogers <irogers@google.com> | Thu Apr 18 17:38:35 2013 -0700 |
committer | Ian Rogers <irogers@google.com> | Thu Apr 18 17:42:02 2013 -0700 |
tree | 0e57c50e7f47a01900e540c0b5e509df4297afed | |
parent | f8adc60455b90c95a6a3c8f87830e4e88b2644e1 [diff] |
Thread tidying. Add is_started_ boolean to Thread so that we don't read an uncreated pthread_key_self_, don't start twice or call shutdown when not started. Don't use a MutexLock in ThreadList::Unregister, as the MutexLock will hold a copy of self for the thread that's deleted. Don't memory leak the resume condition variable. Change-Id: I767968a9f785e560fc9e356a339e684de5ce2ffc