Skip to content

Commit

Permalink
Add thread safety note
Browse files Browse the repository at this point in the history
  • Loading branch information
novafacing committed Aug 20, 2023
1 parent 6918dbe commit 1a6b4f3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Low and high-level Rust bindings to the [Yices2](https://yices.csl.sri.com) SMT
- [BitVectors](#bitvectors)
- [Usage](#usage)
- [Features](#features)
- [Notes](#notes)

## Example

Expand Down Expand Up @@ -75,4 +76,11 @@ you can use the `default-features = false` flag in your `Cargo.toml`.

```toml
yices2 = { version = "2.6.4", default-features = false }
```
```

## Notes

This library is not thread safe, because the underlying `Yices2` library is not thread
safe. Do not use this library in multithreaded code. To use in multi-threaded code,
create a separate process and submit requests to the solver running in that process or
disable the `ctor` feature and manage state yourself.

0 comments on commit 1a6b4f3

Please sign in to comment.