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

Unified Diff: webkit/build/JavaScriptCore/pthread.h

Issue 56071: Enable TCMalloc. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « no previous file | webkit/build/webkit_common_defines.vsprops » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/build/JavaScriptCore/pthread.h
===================================================================
--- webkit/build/JavaScriptCore/pthread.h (revision 12670)
+++ webkit/build/JavaScriptCore/pthread.h (working copy)
@@ -76,5 +76,19 @@
return 0;
}
+// ----------------------------------------------------------------------------
+// pthread_key_t
+typedef int pthread_key_t;
+
+void pthread_setspecific(pthread_key_t key, void* value) {
+ TlsSetValue(key, value);
+}
+
+void pthread_key_create(pthread_key_t* key, void* destructor) {
+ // TODO(mbelshe): hook up the per-thread destructor.
+ *key = TlsAlloc();
+}
+
+
#endif // CHROME_WEBKIT_BUILD_JAVASCRIPTCORE_PTHREAD_H__
« no previous file with comments | « no previous file | webkit/build/webkit_common_defines.vsprops » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698