in reply to General memory management for embedded/extended perl with C threads
As an aside, note that you have to be very careful when creating multiple threads inside perl. Most of perl's data structures are private to each interpreter and are not designed to be shared by multiple threads. So for example if you have two threads accessing the same SV structure, madness will ensue. Make sure that only the original thread that called the XS code allocates/releases any further Perl data. If the other threads only do private stuff unrelated to perl then that's okay.
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: General memory management for embedded/extended perl with C threads
by Anonymous Monk on Nov 15, 2004 at 15:36 UTC |