summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/Threading.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-11-20 11:13:56 +0000
committerSteve Block <steveblock@google.com>2009-11-20 11:31:12 +0000
commit44991d7282295431aa1809bf22c45850d69ec428 (patch)
tree77b4839ab95c0fa485aff7370b970a7142607094 /JavaScriptCore/wtf/Threading.cpp
parent2cc706295f906df0bb49f51c9efe92a97c427464 (diff)
downloadexternal_webkit-44991d7282295431aa1809bf22c45850d69ec428.zip
external_webkit-44991d7282295431aa1809bf22c45850d69ec428.tar.gz
external_webkit-44991d7282295431aa1809bf22c45850d69ec428.tar.bz2
Cleans up Threading.cpp/h ready for upstreaming to webkit.org.
$ diff ~/WebKitTipOfTree/JavaScriptCore/wtf/Threading.cpp JavaScriptCore/wtf/Threading.cpp $ diff ~/WebKitTipOfTree/JavaScriptCore/wtf/Threading.h JavaScriptCore/wtf/Threading.h 75a76,77 > #elif PLATFORM(ANDROID) > #include "cutils/atomic.h" 234a237,241 > #elif PLATFORM(ANDROID) > > inline int atomicIncrement(int volatile* addend) { return android_atomic_inc(addend); } > inline int atomicDecrement(int volatile* addend) { return android_atomic_dec(addend); } > Change-Id: Ie4835ff88aae608b7a1844be1b422d105b327528
Diffstat (limited to 'JavaScriptCore/wtf/Threading.cpp')
-rw-r--r--JavaScriptCore/wtf/Threading.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/JavaScriptCore/wtf/Threading.cpp b/JavaScriptCore/wtf/Threading.cpp
index 35ba017..74c47f4 100644
--- a/JavaScriptCore/wtf/Threading.cpp
+++ b/JavaScriptCore/wtf/Threading.cpp
@@ -28,10 +28,6 @@
#include <string.h>
-#if PLATFORM(ANDROID)
-#include <memory>
-#endif
-
namespace WTF {
struct NewThreadContext : FastAllocBase {
@@ -79,7 +75,7 @@ ThreadIdentifier createThread(ThreadFunction entryPoint, void* data, const char*
NewThreadContext* context = new NewThreadContext(entryPoint, data, name);
- // Prevent the thread body from executing until we've established the thread identifier
+ // Prevent the thread body from executing until we've established the thread identifier.
MutexLocker locker(context->creationMutex);
return createThreadInternal(threadEntryPoint, context, name);