diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-30 01:46:35 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-30 01:46:35 +0000 |
commit | 0701d68f97a66e5435985fa495893b8a68c14533 (patch) | |
tree | b7de438760c143b91eb3204b26b9f2d7de236a1d /TSRM/TSRM.h | |
parent | 0a382bd3dc80f639e54dc4dd2cb90a2a4c45ef2f (diff) | |
download | php-git-0701d68f97a66e5435985fa495893b8a68c14533.tar.gz |
Save TSRMLS_FETCH()'s
Diffstat (limited to 'TSRM/TSRM.h')
-rw-r--r-- | TSRM/TSRM.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index 64c387eafd..ffb977662d 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -98,6 +98,11 @@ TSRM_API void ts_free_id(ts_rsrc_id id); #define TSRM_ERROR_LEVEL_ERROR 1 #define TSRM_ERROR_LEVEL_CORE 2 #define TSRM_ERROR_LEVEL_INFO 3 + +typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id, void ***tsrm_ls); +typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id, void ***tsrm_ls); + + TSRM_API int tsrm_error(int level, const char *format, ...); TSRM_API void tsrm_error_set(int level, char *debug_filename); @@ -108,8 +113,8 @@ TSRM_API void tsrm_mutex_free(MUTEX_T mutexp); TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp); TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp); -TSRM_API void *tsrm_set_new_thread_begin_handler(void (*new_thread_begin_handler)(THREAD_T thread_id)); -TSRM_API void *tsrm_set_new_thread_end_handler(void (*new_thread_end_handler)(THREAD_T thread_id)); +TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler); +TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler); #define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1) #define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1) |