Change-Id: I8bfd5684a7c198a332c81362eb643851bf2d5e77
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-__thread LogFunction gthreadLocalLogFunction = NULL;
+thread_local LogFunction gthreadLocalLogFunction = NULL;
/* Forward declarations */
std::string FormatToString(const char *format, ...);
/* Forward declarations */
std::string FormatToString(const char *format, ...);
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
int size; ///< Number of frames in the frame array (can be less than MAX_NUM_STACK_FRAMES)
};
int size; ///< Number of frames in the frame array (can be less than MAX_NUM_STACK_FRAMES)
};
-__thread BackTraceInfo gBackTraceInfo[ MAX_LOCK_SUPPORT ]; ///< Thread local storage for the backtrace of the locks
+thread_local BackTraceInfo gBackTraceInfo[ MAX_LOCK_SUPPORT ]; ///< Thread local storage for the backtrace of the locks
#endif // LOCK_BACKTRACE_ENABLED
#endif // LOCK_BACKTRACE_ENABLED
-__thread unsigned int gThreadLockCount = 0; ///<
+thread_local unsigned int gThreadLockCount = 0; ///< Thread local storage for the backtrace of the locks
} // unnamed namespace
void Lock( pthread_mutex_t* mutex )
} // unnamed namespace
void Lock( pthread_mutex_t* mutex )
-__thread ThreadLocalStorage* threadLocal = NULL;
+thread_local ThreadLocalStorage* threadLocal = NULL;
}
ThreadLocalStorage::ThreadLocalStorage(Core* core)
}
ThreadLocalStorage::ThreadLocalStorage(Core* core)