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

Side by Side Diff: third_party/tcmalloc/chromium/src/maybe_threads.h

Issue 1715903002: Adapt upstream patches fixing potential deadlock in tcmalloc after fork. Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Updated README Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2005, Google Inc. 1 // Copyright (c) 2005, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include <pthread.h> 42 #include <pthread.h>
43 #endif 43 #endif
44 44
45 int perftools_pthread_key_create(pthread_key_t *key, 45 int perftools_pthread_key_create(pthread_key_t *key,
46 void (*destr_function) (void *)); 46 void (*destr_function) (void *));
47 void *perftools_pthread_getspecific(pthread_key_t key); 47 void *perftools_pthread_getspecific(pthread_key_t key);
48 int perftools_pthread_setspecific(pthread_key_t key, void *val); 48 int perftools_pthread_setspecific(pthread_key_t key, void *val);
49 int perftools_pthread_once(pthread_once_t *ctl, 49 int perftools_pthread_once(pthread_once_t *ctl,
50 void (*init_routine) (void)); 50 void (*init_routine) (void));
51 51
52 // Our wrapper for pthread_atfork. Does _nothing_ when there are no
53 // threads. See static_vars.cc:SetupAtForkLocksHandler for only user
54 // of this.
55 void perftools_pthread_atfork(void (*before)(),
56 void (*parent_after)(),
57 void (*child_after)());
58
52 #endif /* GOOGLE_MAYBE_THREADS_H_ */ 59 #endif /* GOOGLE_MAYBE_THREADS_H_ */
OLDNEW
« no previous file with comments | « third_party/tcmalloc/chromium/src/central_freelist.h ('k') | third_party/tcmalloc/chromium/src/maybe_threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698