Author: stevehay Date: Thu Oct 31 13:29:00 2013 New Revision: 1537484 URL: http://svn.apache.org/r1537484 Log: Merged revision(s) 584377 from perl/modperl/branches/threading: Introduce ModPerl::Interpreter, an interface to modperl_interp_t. Note, this currently does not behave correctly with a non-threaded Apache
Submitted-By Torsten Foertsch <torsten.foert...@gmx.net> Message-Id: <200710101543.33946.torsten.foert...@gmx.net> Reviewed-By: gozer ........ Added: perl/modperl/branches/httpd24threading/t/response/TestModperl/interpreter.pm - copied unchanged from r584377, perl/modperl/branches/threading/t/response/TestModperl/interpreter.pm perl/modperl/branches/httpd24threading/xs/ModPerl/Interpreter/ - copied from r584377, perl/modperl/branches/threading/xs/ModPerl/Interpreter/ perl/modperl/branches/httpd24threading/xs/maps/modperl_structures.map - copied unchanged from r584377, perl/modperl/branches/threading/xs/maps/modperl_structures.map Modified: perl/modperl/branches/httpd24threading/ (props changed) perl/modperl/branches/httpd24threading/Changes perl/modperl/branches/httpd24threading/t/modperl/ (props changed) perl/modperl/branches/httpd24threading/xs/maps/modperl_functions.map perl/modperl/branches/httpd24threading/xs/maps/modperl_types.map perl/modperl/branches/httpd24threading/xs/tables/current/Apache2/StructureTable.pm perl/modperl/branches/httpd24threading/xs/tables/current/ModPerl/FunctionTable.pm Propchange: perl/modperl/branches/httpd24threading/ ------------------------------------------------------------------------------ Merged /perl/modperl/branches/threading:r584377 Modified: perl/modperl/branches/httpd24threading/Changes URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24threading/Changes?rev=1537484&r1=1537483&r2=1537484&view=diff ============================================================================== --- perl/modperl/branches/httpd24threading/Changes (original) +++ perl/modperl/branches/httpd24threading/Changes Thu Oct 31 13:29:00 2013 @@ -12,6 +12,8 @@ Also refer to the Apache::Test changes l =item 2.0.9-dev +Expose modperl_interp_t via ModPerl::Interpreter [Torsten Foertsch] + Fix t/compat/apache_file.t on Windows. Apache::File->tmpfile() wants TMPDIR or TEMP from the environment, or else defaults to /tmp. The latter is no good on Windows, so make sure the environment variables are passed through. Propchange: perl/modperl/branches/httpd24threading/t/modperl/ ------------------------------------------------------------------------------ --- svn:ignore (original) +++ svn:ignore Thu Oct 31 13:29:00 2013 @@ -1,6 +1,7 @@ current_callback.t env.t endav.t +interpreter.t printf.t print.t dir_config.t Modified: perl/modperl/branches/httpd24threading/xs/maps/modperl_functions.map URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24threading/xs/maps/modperl_functions.map?rev=1537484&r1=1537483&r2=1537484&view=diff ============================================================================== --- perl/modperl/branches/httpd24threading/xs/maps/modperl_functions.map (original) +++ perl/modperl/branches/httpd24threading/xs/maps/modperl_functions.map Thu Oct 31 13:29:00 2013 @@ -172,3 +172,6 @@ MODULE=Apache2::MPM PACKAGE=Apache2:: MODULE=Apache2::Access PACKAGE=guess mpxs_Apache2__RequestRec_allow_override_opts + +MODULE=ModPerl::Interpreter + mpxs_ModPerl__Interpreter_current Modified: perl/modperl/branches/httpd24threading/xs/maps/modperl_types.map URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24threading/xs/maps/modperl_types.map?rev=1537484&r1=1537483&r2=1537484&view=diff ============================================================================== --- perl/modperl/branches/httpd24threading/xs/maps/modperl_types.map (original) +++ perl/modperl/branches/httpd24threading/xs/maps/modperl_types.map Thu Oct 31 13:29:00 2013 @@ -1,6 +1,9 @@ ########## mod_perl types ########## struct modperl_filter_t | Apache2::OutputFilter +struct modperl_interp_t | ModPerl::Interpreter +modperl_interp_pool_t * | IV +PerlInterpreter * | IV ########## Perl types ########## Modified: perl/modperl/branches/httpd24threading/xs/tables/current/Apache2/StructureTable.pm URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24threading/xs/tables/current/Apache2/StructureTable.pm?rev=1537484&r1=1537483&r2=1537484&view=diff ============================================================================== --- perl/modperl/branches/httpd24threading/xs/tables/current/Apache2/StructureTable.pm (original) +++ perl/modperl/branches/httpd24threading/xs/tables/current/Apache2/StructureTable.pm Thu Oct 31 13:29:00 2013 @@ -3333,6 +3333,39 @@ $Apache2::StructureTable = [ 'name' => 'suexec_enabled' } ] + }, + { + 'type' => 'modperl_interp_t', + 'elts' => [ + { + 'type' => 'modperl_interp_pool_t *', + 'name' => 'mip' + }, + { + 'type' => 'PerlInterpreter *', + 'name' => 'perl' + }, + { + 'type' => 'int', + 'name' => 'num_requests' + }, + { + 'type' => 'U8', + 'name' => 'flags' + }, + { + 'type' => 'modperl_config_con_t *', + 'name' => 'ccfg' + }, + { + 'type' => 'int', + 'name' => 'refcnt' + }, + { + 'type' => 'unsigned long', + 'name' => 'tid' + } + ] } ]; Modified: perl/modperl/branches/httpd24threading/xs/tables/current/ModPerl/FunctionTable.pm URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24threading/xs/tables/current/ModPerl/FunctionTable.pm?rev=1537484&r1=1537483&r2=1537484&view=diff ============================================================================== --- perl/modperl/branches/httpd24threading/xs/tables/current/ModPerl/FunctionTable.pm (original) +++ perl/modperl/branches/httpd24threading/xs/tables/current/ModPerl/FunctionTable.pm Thu Oct 31 13:29:00 2013 @@ -8255,6 +8255,20 @@ $ModPerl::FunctionTable = [ 'name' => 'func' } ] + }, + { + 'return_type' => 'modperl_interp_t *', + 'name' => 'mpxs_ModPerl__Interpreter_current', + 'attr' => [ + 'static', + '__inline__' + ], + 'args' => [ + { + 'type' => 'PerlInterpreter *', + 'name' => 'my_perl' + } + ] } ];