summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r--base/platform_thread.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h
index 542716b..1feb72d 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -32,8 +32,10 @@
#include "base/basictypes.h"
-// PlatformThreadHandle should be a numeric type on all platforms, so it can
-// be initialized to 0. However, 0 cannot be assumed to be an invalid handle.
+// PlatformThreadHandle should not be assumed to be a numeric type, since the
+// standard intends to allow pthread_t to be a structure. This means you
+// should not initialize it to a value, like 0. If it's a member variable, the
+// constructor can safely "value initialize" using () in the initializer list.
#if defined(OS_WIN)
typedef void* PlatformThreadHandle; // HANDLE
#elif defined(OS_POSIX)