Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e1254d74
Kaydet (Commit)
e1254d74
authored
Eki 14, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#7125: fix typo.
üst
14dcd43d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
threading.py
Lib/threading.py
+3
-3
No files found.
Lib/threading.py
Dosyayı görüntüle @
e1254d74
...
@@ -133,7 +133,7 @@ class _RLock(_Verbose):
...
@@ -133,7 +133,7 @@ class _RLock(_Verbose):
def
release
(
self
):
def
release
(
self
):
if
self
.
__owner
is
not
current_thread
():
if
self
.
__owner
is
not
current_thread
():
raise
RuntimeError
(
"cannot release un-aquired lock"
)
raise
RuntimeError
(
"cannot release un-a
c
quired lock"
)
self
.
__count
=
count
=
self
.
__count
-
1
self
.
__count
=
count
=
self
.
__count
-
1
if
not
count
:
if
not
count
:
self
.
__owner
=
None
self
.
__owner
=
None
...
@@ -227,7 +227,7 @@ class _Condition(_Verbose):
...
@@ -227,7 +227,7 @@ class _Condition(_Verbose):
def
wait
(
self
,
timeout
=
None
):
def
wait
(
self
,
timeout
=
None
):
if
not
self
.
_is_owned
():
if
not
self
.
_is_owned
():
raise
RuntimeError
(
"cannot wait on un-aquired lock"
)
raise
RuntimeError
(
"cannot wait on un-a
c
quired lock"
)
waiter
=
_allocate_lock
()
waiter
=
_allocate_lock
()
waiter
.
acquire
()
waiter
.
acquire
()
self
.
__waiters
.
append
(
waiter
)
self
.
__waiters
.
append
(
waiter
)
...
@@ -269,7 +269,7 @@ class _Condition(_Verbose):
...
@@ -269,7 +269,7 @@ class _Condition(_Verbose):
def
notify
(
self
,
n
=
1
):
def
notify
(
self
,
n
=
1
):
if
not
self
.
_is_owned
():
if
not
self
.
_is_owned
():
raise
RuntimeError
(
"cannot notify on un-aquired lock"
)
raise
RuntimeError
(
"cannot notify on un-a
c
quired lock"
)
__waiters
=
self
.
__waiters
__waiters
=
self
.
__waiters
waiters
=
__waiters
[:
n
]
waiters
=
__waiters
[:
n
]
if
not
waiters
:
if
not
waiters
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment