From 7f44b101dfd168598ef63dac6572da29adef0bb6 Mon Sep 17 00:00:00 2001
From: Karol Lewandowski
Date: Mon, 5 Aug 2024 16:10:13 +0200
Subject: [PATCH] threading_model.md: Rename readers-writer lock to read-write
lock
---
.../coroutines/coroutine_read_actions.topic | 2 +-
topics/basics/architectural_overview/threading_model.md | 4 ++--
topics/basics/virtual_file_system.md | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/topics/basics/architectural_overview/coroutines/coroutine_read_actions.topic b/topics/basics/architectural_overview/coroutines/coroutine_read_actions.topic
index d5a4843dd..51059eb3d 100644
--- a/topics/basics/architectural_overview/coroutines/coroutine_read_actions.topic
+++ b/topics/basics/architectural_overview/coroutines/coroutine_read_actions.topic
@@ -16,7 +16,7 @@
the Threading section:
- Read-Write Lock
+ Read-Write Lock
Read Action Cancellability
diff --git a/topics/basics/architectural_overview/threading_model.md b/topics/basics/architectural_overview/threading_model.md
index bc421f15f..1a77f6159 100644
--- a/topics/basics/architectural_overview/threading_model.md
+++ b/topics/basics/architectural_overview/threading_model.md
@@ -26,11 +26,11 @@ Executing on BGT from EDT can be achieved with [background processes](background
>
{style="warning"}
-## Readers-Writer Lock
+## Read-Write Lock
The IntelliJ Platform data structures (such as [Program Structure Interface](psi.md), [Virtual File System](virtual_file_system.md), or [Project root model](project_structure.md)) aren't thread-safe.
Accessing them requires a synchronization mechanism ensuring that all threads see the data in a consistent and up-to-date state.
-This is implemented with a single application-wide [readers-writer (RW) lock](https://w.wiki/7dBy) that must be acquired by threads requiring reading or writing to data models.
+This is implemented with a single application-wide [read-write (RW) lock](https://w.wiki/7dBy) that must be acquired by threads requiring reading or writing to data models.
If a thread requires accessing a data model, it must acquire one of the locks:
diff --git a/topics/basics/virtual_file_system.md b/topics/basics/virtual_file_system.md
index 68414ffb6..23dc33979 100644
--- a/topics/basics/virtual_file_system.md
+++ b/topics/basics/virtual_file_system.md
@@ -78,7 +78,7 @@ If there is some code that needs to be executed after the refresh is complete, t
* [`RefreshQueue.createSession()`](%gh-ic%/platform/analysis-api/src/com/intellij/openapi/vfs/newvfs/RefreshQueue.java)
* [`VirtualFile.refresh()`](%gh-ic%/platform/core-api/src/com/intellij/openapi/vfs/VirtualFile.java)
-In some cases, synchronous refreshes can cause deadlocks, depending on which [locks](threading_model.md#readers-writer-lock) are held by the thread invoking the refresh operation.
+In some cases, synchronous refreshes can cause deadlocks, depending on which [locks](threading_model.md#read-write-lock) are held by the thread invoking the refresh operation.
## Virtual File System Events