develooper Front page | perl.perl5.porters | Postings from June 2001

Re: Linking non-threaded Perl with Pthreads

Thread Previous
From:
artur
Date:
June 25, 2001 09:37
Subject:
Re: Linking non-threaded Perl with Pthreads
Message ID:
auto-000001870094@mail.vogon.se

>
>From: "David M. Lloyd" <dmlloyd@tds.net>
>Date: Mon, 25 Jun 2001 10:23:33 -0500 (CDT)
>To: Perl 5 Porters <perl5-porters@perl.org>
>Subject: Linking non-threaded Perl with Pthreads
>
>Is it safe to have an XS module that uses threads with a non-threaded
>Perl, as long as the threads do not call the Perl API?  Is there anything
>I should look out for?
>
>Thanks!
>
>- D
>
><dmlloyd@tds.net>

Yes and no, depends on your libc, malloc and friends.

If you don't use perls api, and if you don't use any unsafe libc calls you should be safe. And probobly you don't want to mess at_fork handlers.

Artur


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About