Hi All,

I've created my first perl xs module that wraps a
static C library with abou 3 functions, so I can call
them from Perl. All very good (had to change to
compile with g++ though).

Anyway, I've got some concerns about thread safety.
Now imagine I have a number of threads (or slaves)
that use the Perl extension module that I've created.
This module is statically linked to the C library that
it wraps.

I don't understand how the module works in terms of
linking. Is the module a shared library?

Will all the slaves be connecting to the same
'instance' of the module and hence the same instance
of the static library.

The C code I've got in myprog.xs is thread safe, but I
don't have control of the static library, and I don't
think it can handle concurrent calls.

Have I made my concerns clear?

Any help on understanding how the module works will be
appreciated.

TIA, 

Chris Masters 

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Reply via email to