in reply to threads::shared locking via C API
The function you need to call is Perl_sharedsv_locksv(pTHX_ SV *sv) found in threads::shared.xs.
But good luck in working out how to link to it.
Another mystery that has long defeated me is quite where the perl-level lock() function (keyword or operator) lives and how it gets translated into a call to the above.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: threads::shared locking via C API
by Anonymous Monk on Aug 26, 2011 at 07:57 UTC | |
by BrowserUk (Patriarch) on Aug 26, 2011 at 10:38 UTC |