summaryrefslogtreecommitdiff
path: root/pod/perlapi.pod
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-04-03 13:15:30 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-04-03 13:15:30 +0000
commit62375a601d6dbbc42fa6d70d83d0a60b73d1b86d (patch)
tree7cf47279ebe56f251304d9b9d314f62c7066ce0a /pod/perlapi.pod
parente5a119301ff5c8127ffae5b126fbb52e5a78c804 (diff)
downloadperl-62375a601d6dbbc42fa6d70d83d0a60b73d1b86d.tar.gz
Fix segfaults when mainthread exits with other threads running:
- track number of running threads - if main thread calls perl_destruct() with other threads running skip most of cleanup (with a warning). p4raw-id: //depot/perlio@15698
Diffstat (limited to 'pod/perlapi.pod')
-rw-r--r--pod/perlapi.pod10
1 files changed, 10 insertions, 0 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index ad0d6d850c..94f26eb63a 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -576,6 +576,16 @@ method, similar to C<use Foo::Bar VERSION LIST>.
=for hackers
Found in file op.c
+=item nothreadhook
+
+Stub that provides thread hook for perl_destruct when there are
+no threads.
+
+ int nothreadhook()
+
+=for hackers
+Found in file perl.c
+
=item perl_alloc
Allocates a new Perl interpreter. See L<perlembed>.