explicit passing of *tsrm_ls isn't needed anymore
authorAnatol Belski <ab@php.net>
Fri, 12 Dec 2014 07:11:14 +0000 (08:11 +0100)
committerAnatol Belski <ab@php.net>
Fri, 12 Dec 2014 07:11:14 +0000 (08:11 +0100)
TSRM/TSRM.c
TSRM/TSRM.h

index df831f31b80f4562605111a75a814b446c123bc2..67b7ff6002324e702cc9ba6994647637d250ee4e 100644 (file)
@@ -286,7 +286,7 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
        tsrm_tls_set(*thread_resources_ptr);
 
        if (tsrm_new_thread_begin_handler) {
-               tsrm_new_thread_begin_handler(thread_id, &((*thread_resources_ptr)->storage));
+               tsrm_new_thread_begin_handler(thread_id);
        }
        for (i=0; i<id_count; i++) {
                if (resource_types_table[i].done) {
@@ -301,7 +301,7 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
        }
 
        if (tsrm_new_thread_end_handler) {
-               tsrm_new_thread_end_handler(thread_id, &((*thread_resources_ptr)->storage));
+               tsrm_new_thread_end_handler(thread_id);
        }
 
        tsrm_mutex_unlock(tsmm_mutex);
index e25e3048ad04258ae6c11beb0ba667a448067718..83999c3521289db5b84614f9a1c02b128b11fd64 100644 (file)
@@ -129,8 +129,8 @@ TSRM_API void ts_free_id(ts_rsrc_id id);
 #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);
+typedef void (*tsrm_thread_begin_func_t)(THREAD_T thread_id);
+typedef void (*tsrm_thread_end_func_t)(THREAD_T thread_id);
 
 
 TSRM_API int tsrm_error(int level, const char *format, ...);