in reply to Re: Win32, fork and XS globals
in thread Win32, fork and XS globals
That perlmod link is not terribly useful. For instructions on creating per-interpreter variables, see "Safely Storing Static Data in XS" in perlxs. It even includes an example.
The mechanism allows each interpreter in a process to have their own copies of variables. This is useful not only when threads are involved, but in all instances when a process has multiple Perl interpreters (e.g. mod_perl?).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32, fork and XS globals
by syphilis (Archbishop) on Oct 02, 2011 at 08:15 UTC | |
|
Re^3: Win32, fork and XS globals
by BrowserUk (Patriarch) on Oct 02, 2011 at 06:09 UTC | |
by ikegami (Patriarch) on Oct 02, 2011 at 09:33 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2011 at 10:16 UTC | |
by ikegami (Patriarch) on Oct 02, 2011 at 18:40 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2011 at 19:33 UTC | |
|