mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
threading_model.md: Mention that writing is prioritized over reading
This commit is contained in:
parent
bdf97c44c6
commit
dab6fb58e4
@ -127,6 +127,8 @@ The described lock characteristics conclude the following:
|
||||
- multiple threads can read data at the same time
|
||||
- once a thread acquires the write lock, no other threads can read or write data
|
||||
|
||||
Note that acquiring write locks is prioritized over read locks.
|
||||
|
||||
Acquiring and releasing locks explicitly in code would be verbose and error-prone and must never be done by plugins.
|
||||
The IntelliJ Platform enables write intent lock implicitly on EDT (see [](#locks-and-edt) for details) and provides an [API for accessing data under read or write locks](#accessing-data).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user