diff options
author | Elliott Hughes <enh@google.com> | 2013-11-19 13:31:58 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-11-19 14:08:54 -0800 |
commit | 36d6188f8cd8b948fb797f11d9620d63d0c2215a (patch) | |
tree | 86b3162cac031151b2ae44b4d554fce4f9456147 /libc/bionic/pthread_internals.cpp | |
parent | 318e86ed887e04e593f3db9b84b402d5501ced9b (diff) | |
download | bionic-36d6188f8cd8b948fb797f11d9620d63d0c2215a.zip bionic-36d6188f8cd8b948fb797f11d9620d63d0c2215a.tar.gz bionic-36d6188f8cd8b948fb797f11d9620d63d0c2215a.tar.bz2 |
Clean up forking and cloning.
The kernel now maintains the pthread_internal_t::tid field for us,
and __clone was only used in one place so let's inline it so we don't
have to leave such a dangerous function lying around. Also rename
files to match their content and remove some useless #includes.
Change-Id: I24299fb4a940e394de75f864ee36fdabbd9438f9
Diffstat (limited to 'libc/bionic/pthread_internals.cpp')
-rw-r--r-- | libc/bionic/pthread_internals.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libc/bionic/pthread_internals.cpp b/libc/bionic/pthread_internals.cpp index 4b1f6ef..f8afeaf 100644 --- a/libc/bionic/pthread_internals.cpp +++ b/libc/bionic/pthread_internals.cpp @@ -73,14 +73,6 @@ pid_t __pthread_gettid(pthread_t t) { return reinterpret_cast<pthread_internal_t*>(t)->tid; } -int __pthread_settid(pthread_t t, pid_t tid) { - if (t == 0) { - return EINVAL; - } - reinterpret_cast<pthread_internal_t*>(t)->tid = tid; - return 0; -} - // Initialize 'ts' with the difference between 'abstime' and the current time // according to 'clock'. Returns -1 if abstime already expired, or 0 otherwise. int __timespec_to_absolute(timespec* ts, const timespec* abstime, clockid_t clock) { |