>>>>> "David" == David M Lloyd <[EMAIL PROTECTED]> writes:

    David> Is it safe to have an XS module that uses threads with a
    David> non-threaded Perl, as long as the threads do not call the
    David> Perl API?  Is there anything I should look out for?

        A purely anectdotal data point: I wrote an XS wrapper for an
(in-house) C++ shared library on Solaris 2.6 that ran fine with a
non-threaded perl.  Both perl and the shared library were compiled
with gcc 2.95.2.  Callbacks from the C++ objects returned data by
appending it to a linked list guarded by a mutex.


        I can't provide any more details than that since it was a job
back and almost two years ago.


-- 
Fletch                | "If you find my answers frightening,       __`'/|
[EMAIL PROTECTED]   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U

Reply via email to