archlinux / alpm.rs

Rust bindings for libalpm
GNU General Public License v3.0
112 stars 21 forks source link

Alpm does not implement Send #6

Closed bluskript closed 3 years ago

bluskript commented 3 years ago

It doesn't seem to be possible to use Alpm in threads safely, due to the presence of *mut alpm_handle_t in the struct. Is there a good reason for this, or is it maybe possible to refactor code to make it work in concurrent contexts?

Morganamilo commented 3 years ago

I just didn't need it and didn't want to implement it without making sure it was safe. Off the top of my head I don't see why Alpm couldn't be Send.