in reply to Multi-thread friendly object life-time handling for XS modules
or look to see how wxperl does it.
https://metacpan.org/pod/distribution/Wx/lib/Wx/Thread.pod
so make condition that main thread loads module. Then keep all real pointers alive in main...
sorry im afk and my memory is weak
wait, hiw does dbi do it? Oh righg it just croaks when user tries to share, sounds smart :)https://metacpan.org/pod/DBI#Threads-and-Thread-Safety
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multi-thread friendly object life-time handling for XS modules
by salva (Canon) on Nov 06, 2017 at 11:59 UTC |