| OLD | NEW |
| 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 Loading... |
| 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_ */ |
| OLD | NEW |