libxml-raku / LibXML-raku

Raku bindings to the libxml2 native library
Artistic License 2.0
11 stars 4 forks source link

Add more thread-safety measures #67

Closed vrurg closed 2 years ago

vrurg commented 2 years ago

Change our declarations to my. They are only referenced locally.

Protect a hash and an array access with locks.

vrurg commented 2 years ago

I have actually hit an issue with %class where it was accessed concurrently.

@catalogs is risking the same fatum as arrays are not thread-safe either.

I also considered it more appropriate to have these protected with my as nobody would then be seduced by possibility of mangling with them manually.

dwarring commented 2 years ago

Thanks, Released with LibXML 0.6.14