Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: src/IceTLS.h

Issue 1341423002: Reflow comments to use the full width. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix spelling and rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceSwitchLowering.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTLS.h
diff --git a/src/IceTLS.h b/src/IceTLS.h
index 0e7731dc6624a99a9562e824583deeb1d33103ed..9a20e70d931943de240ae507ad071d5a4ccd8621 100644
--- a/src/IceTLS.h
+++ b/src/IceTLS.h
@@ -9,9 +9,8 @@
///
/// \file
/// This file defines macros for working around the lack of support for
-/// thread_local in MacOS 10.6. It assumes std::thread is written in
-/// terms of pthread. Define ICE_THREAD_LOCAL_HACK to enable the
-/// pthread workarounds.
+/// thread_local in MacOS 10.6. It assumes std::thread is written in terms of
+/// pthread. Define ICE_THREAD_LOCAL_HACK to enable the pthread workarounds.
///
//===----------------------------------------------------------------------===//
@@ -26,25 +25,25 @@
// Defines 4 macros for unifying thread_local and pthread:
//
-// ICE_TLS_DECLARE_FIELD(Type, FieldName): Declare a static
-// thread_local field inside the current class definition. "Type"
-// needs to be a pointer type, such as int* or class Foo*.
+// ICE_TLS_DECLARE_FIELD(Type, FieldName): Declare a static thread_local field
+// inside the current class definition. "Type" needs to be a pointer type, such
+// as int* or class Foo*.
//
// ICE_TLS_DEFINE_FIELD(Type, ClassName, FieldName): Define a static
-// thread_local field outside of its class definition. The field will
+// thread_local field outside of its class definition. The field will
// ultimately be initialized to nullptr.
//
-// ICE_TLS_INIT_FIELD(FieldName): Ensure the thread_local field is
-// properly initialized. This is intended to be called from within a
-// static method of the field's class after main() starts (to ensure
-// that the pthread library is fully initialized) but before any uses
-// of ICE_TLS_GET_FIELD or ICE_TLS_SET_FIELD.
+// ICE_TLS_INIT_FIELD(FieldName): Ensure the thread_local field is properly
+// initialized. This is intended to be called from within a static method of
+// the field's class after main() starts (to ensure that the pthread library is
+// fully initialized) but before any uses of ICE_TLS_GET_FIELD or
+// ICE_TLS_SET_FIELD.
//
// ICE_TLS_GET_FIELD(Type, FieldName): Read the value of the static
-// thread_local field. Must be done within the context of its class.
+// thread_local field. Must be done within the context of its class.
//
// ICE_TLS_SET_FIELD(FieldName, Value): Write a value into the static
-// thread_local field. Must be done within the context of its class.
+// thread_local field. Must be done within the context of its class.
// TODO(stichnot): Limit this define to only the platforms that
// absolutely require it. And ideally, eventually remove this hack
@@ -52,17 +51,16 @@
#define ICE_THREAD_LOCAL_HACK
#ifdef ICE_THREAD_LOCAL_HACK
-// For a static thread_local field F of a class C, instead of
-// declaring and defining C::F, we create two static fields:
+// For a static thread_local field F of a class C, instead of declaring and
+// defining C::F, we create two static fields:
// static pthread_key_t F__key;
// static int F__initStatus;
//
// The F__initStatus field is used to hold the result of the
-// pthread_key_create() call, where a zero value indicates success,
-// and a nonzero value indicates failure or that ICE_TLS_INIT_FIELD()
-// was never called.
-// The F__key field is used as the argument to
-// pthread_getspecific() and pthread_setspecific().
+// pthread_key_create() call, where a zero value indicates success, and a
+// nonzero value indicates failure or that ICE_TLS_INIT_FIELD() was never
+// called. The F__key field is used as the argument to pthread_getspecific()
+// and pthread_setspecific().
#include <pthread.h>
« no previous file with comments | « src/IceSwitchLowering.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698