summaryrefslogtreecommitdiffstats
path: root/libcxx/include/thread
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-10-17 20:08:59 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-10-17 20:08:59 +0000
commita892966218c2c7907bdc3f158685b7aa08ac9984 (patch)
treed50dc1576d40b9580d7d091cad2fc3aedc08bd8e /libcxx/include/thread
parent444bd25dff35cf8610e9baf1268d6a75a0fa059f (diff)
downloadbcm5719-llvm-a892966218c2c7907bdc3f158685b7aa08ac9984.tar.gz
bcm5719-llvm-a892966218c2c7907bdc3f158685b7aa08ac9984.zip
de-tabbify
llvm-svn: 142237
Diffstat (limited to 'libcxx/include/thread')
-rw-r--r--libcxx/include/thread22
1 files changed, 11 insertions, 11 deletions
diff --git a/libcxx/include/thread b/libcxx/include/thread
index 4366c41dbc2..4db4f61b981 100644
--- a/libcxx/include/thread
+++ b/libcxx/include/thread
@@ -137,40 +137,40 @@ template <class _Tp>
void
__thread_specific_ptr<_Tp>::__at_thread_exit(void* __p)
{
- delete static_cast<pointer>(__p);
+ delete static_cast<pointer>(__p);
}
template <class _Tp>
__thread_specific_ptr<_Tp>::__thread_specific_ptr()
{
int __ec = pthread_key_create(&__key_, &__thread_specific_ptr::__at_thread_exit);
- if (__ec)
- throw system_error(error_code(__ec, system_category()),
- "__thread_specific_ptr construction failed");
+ if (__ec)
+ throw system_error(error_code(__ec, system_category()),
+ "__thread_specific_ptr construction failed");
}
template <class _Tp>
__thread_specific_ptr<_Tp>::~__thread_specific_ptr()
{
- pthread_key_delete(__key_);
+ pthread_key_delete(__key_);
}
template <class _Tp>
typename __thread_specific_ptr<_Tp>::pointer
__thread_specific_ptr<_Tp>::release()
{
- pointer __p = get();
- pthread_setspecific(__key_, 0);
- return __p;
+ pointer __p = get();
+ pthread_setspecific(__key_, 0);
+ return __p;
}
template <class _Tp>
void
__thread_specific_ptr<_Tp>::reset(pointer __p)
{
- pointer __p_old = get();
- pthread_setspecific(__key_, __p);
- delete __p_old;
+ pointer __p_old = get();
+ pthread_setspecific(__key_, __p);
+ delete __p_old;
}
class thread;
OpenPOWER on IntegriCloud