File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ # Thread safety
2+
3+ Object instances of pyosmium are not thread-safe to modify. If you share
4+ objects like an index, you have to protect write accesses to these objects.
5+ Concurrent reads are safe.
6+
7+ The library functions themselves are all reentrant and may be used safely from
8+ different threads.
9+
10+ ### Free-threaded Python
11+
12+ Starting with version 4.1, Pyosmium has experimental support for Python
13+ runtimes with GIL disabled. See the
14+ [ Python Free-Threading Guide] ( https://py-free-threading.github.io/ )
15+ for more information.
16+
17+ The restrictions mentioned above still apply: write accesses on object need
18+ to be protected by exclusive locks when using them in multi-threaded context.
Original file line number Diff line number Diff line change 4747 - Indexes : ' reference/Indexes.md'
4848 - Replication : ' reference/Replication.md'
4949 - Exceptions : ' reference/Exceptions.md'
50+ - Thread Safety : ' reference/Thread-Safety.md'
5051
5152exclude_docs : |
5253 .*.swp
You can’t perform that action at this time.
0 commit comments