| 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__
|
|
|