On Tue, Nov 1, 2016 at 12:01 PM, Itsuki Toyota <perl6-bugs-follo...@perl.org > wrote:
> I think I properly call the MeCab functions from Perl 6(e.g. > $model.create-tagger, $model.create-lattice) according to the above > instructions. > So I think something is wrong in the NativeCall. > Not sure NativeCall even knows about TLS as yet. Probably needs a new attribute for functions that use TLS, and code to ensure those always run on the same thread. (This also needs to group functions so they will all use the same thread... which, given the usage for this particular library, may need to be dynamic where the init call picks an available thread and "pins" it for subsequent calls. Which will be tricky, because it needs to be attached to the object returned by init. Urgh.) -- brandon s allbery kf8nh sine nomine associates allber...@gmail.com ballb...@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net