Skip to content

Commit

Permalink
Remove IS_MACOSX, fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YvesDup committed Oct 19, 2024
1 parent c441ccd commit 222aab4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/multiprocessing/synchronize.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

RECURSIVE_MUTEX, SEMAPHORE = list(range(2))
SEM_VALUE_MAX = _multiprocessing.SemLock.SEM_VALUE_MAX
IS_MACOSX = sys.platform == 'darwin'

#
# Base class for semaphores and mutexes; wraps `_multiprocessing.SemLock`
Expand Down Expand Up @@ -132,8 +131,8 @@ def _make_name():
class _MacOSXSemaphore(SemLock):
"""Dedicated class used only to workaround the missing
function 'sem_getvalue', when interpreter runs on MacOSX.
Add a shared counter for each (Bounded)Semaphore in order
to handle internal value when acquire and release operations
Add a shared counter for each [Bounded]Semaphore in order
to handle internal counter when acquire and release operations
are called.
"""

Expand Down

0 comments on commit 222aab4

Please sign in to comment.