Skip to content
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

Thread-safety #14

Open
iosonopersia opened this issue Apr 28, 2021 · 0 comments
Open

Thread-safety #14

iosonopersia opened this issue Apr 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@iosonopersia
Copy link
Collaborator

oc_ocdm is not thread-safe!

As for now, it's better to make sure that this library is used inside only one execution context at a time.

This is caused by the way in which the IDs of new entities are managed (storing and reading counters from text files or in-memory dictionaries).

It could be worth having a look at the CounterHandler subclasses.

@iosonopersia iosonopersia added the enhancement New feature or request label Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant