-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR: from dyn to master #6
base: master
Are you sure you want to change the base?
Conversation
… into threadsafe
@@ -295,7 +294,9 @@ impl ErasureCoder { | |||
} | |||
impl Drop for ErasureCoder { | |||
fn drop(&mut self) { | |||
let _ = c_api::instance_destroy(self.desc); | |||
with_global_lock(|| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a short description which describes why we must use a global lock here?
@@ -29,6 +29,16 @@ For example, on Ubuntu, you can install those by executing the following command | |||
$ sudo apt install gcc git make automake autoconf libtool | |||
``` | |||
|
|||
Before do `cargo build`, please set the two environment variables `FRUGALOS_DIR` and `LD_LIBRARY_PATH` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
依存関係的には、liberasurecodeはfrugalosに依存しないより汎用的なライブラリとしても使えるものだと思うので、個人的には FRUGALOS_DIR
もそれを反映した名前(e.g., LIBERASURECODE_DIR
)の方が好みです。
ただ、今回の修正でlibfrugalos
内の他の個所にも結構frugalos
という用語が出てくるようになって、それらを全て置き換えるのも手間だと思うので、別にこのままでも大丈夫です。
動的リンクベースでopenstack/liberasurecodeを用いるためのPR