Commit 299794d
authored
Make cereal thread safe by default (#178)
# Changes
If you read the [Cereal library
documentation](https://uscilab.github.io/cereal/thread_safety.html), you
will be shocked that the default behavior for the library is to not have
it run in a multithreaded manner. It apparently has a global variable
that it uses to track information and it works nicely in a single
threaded application, however in a mutlithreaded application is can be
problematic.
The changes here changes the default behavior so that this global
variable is thread safe and doesn't cause any undefined behavior.1 parent a977445 commit 299794d
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
0 commit comments