Skip to content

Commit b825b8b

Browse files
committed
update comment
1 parent f6a09dd commit b825b8b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/multiprocessing/synchronize.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ def _make_name():
133133
class _MacOSXSemaphore(SemLock):
134134
"""Dedicated class used only to workaround the missing
135135
function 'sem_getvalue', when interpreter runs on MacOSX.
136-
Add a shared counter for each [Bounded]Semaphore in order
137-
to handle internal counter when acquire and release operations
138-
are called.
136+
Add two shared counters for each [Bounded]Semaphore in order
137+
to handle 'internal counter' and 'pending acquires' counters
138+
when acquire and release operations are called.
139139
"""
140140

141141
def __init__(self, kind, value, maxvalue, *, ctx):
@@ -175,7 +175,7 @@ def get_value(self):
175175

176176
def _make_methods(self):
177177
# Do not call the `Semlock._make_methods` method,
178-
# as this breaks the reference to the local
178+
# because that breaks the reference to the local
179179
# `acquire` and `release` methods.
180180
pass
181181

0 commit comments

Comments
 (0)