[svn:PHP-Sandwich] rev 1012 - PHP-Sandwich/trunk/stuff
[email protected] 22 Apr 2005 14:23:41 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: gschlossnagle Date: Fri Apr 22 07:23:40 2005 New Revision: 1012 Modified: PHP-Sandwich/trunk/stuff/TSRM.patch Log: oops Modified: PHP-Sandwich/trunk/stuff/TSRM.patch ============================================================================== --- PHP-Sandwich/trunk/stuff/TSRM.patch (original) +++ PHP-Sandwich/trunk/stuff/TSRM.patch Fri Apr 22 07:23:40 2005 @@ -1,10 +1,11 @@ +? TSRM/a.patch Index: TSRM/TSRM.c =================================================================== RCS file: /repository/TSRM/TSRM.c,v retrieving revision 1.64 diff -u -3 -r1.64 TSRM.c --- TSRM/TSRM.c 20 Mar 2005 09:03:40 -0000 1.64 -+++ TSRM/TSRM.c 22 Apr 2005 03:39:49 -0000 ++++ TSRM/TSRM.c 22 Apr 2005 14:22:53 -0000 @@ -379,6 +379,96 @@ #endif } @@ -102,3 +103,23 @@ /* frees all resources allocated for the current thread */ void ts_free_thread(void) +Index: TSRM/TSRM.h +=================================================================== +RCS file: /repository/TSRM/TSRM.h,v +retrieving revision 1.48 +diff -u -3 -r1.48 TSRM.h +--- TSRM/TSRM.h 17 Mar 2005 08:15:22 -0000 1.48 ++++ TSRM/TSRM.h 22 Apr 2005 14:22:53 -0000 +@@ -132,6 +132,12 @@ + 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); + ++/* these 3 APIs should only be used by people that fully understand the threading model ++ * used by PHP/Zend and the select SAPI. */ ++TSRM_API void *tsrm_new_interpreter_context(void); ++TSRM_API void *tsrm_set_interpreter_context(void *new_ctx); ++TSRM_API void tsrm_free_interpreter_context(void *context); ++ + #define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1) + #define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1) +