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
adbc0097
Kaydet (Commit)
adbc0097
authored
Nis 19, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add version{added,changed} for lock timeout support.
üst
05a2f881
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
_thread.rst
Doc/library/_thread.rst
+5
-0
threading.rst
Doc/library/threading.rst
+6
-0
No files found.
Doc/library/_thread.rst
Dosyayı görüntüle @
adbc0097
...
@@ -109,6 +109,8 @@ It defines the following constants and functions:
...
@@ -109,6 +109,8 @@ It defines the following constants and functions:
:meth:`Lock.acquire`. Specifiying a timeout greater than this value will
:meth:`Lock.acquire`. Specifiying a timeout greater than this value will
raise an :exc:`OverflowError`.
raise an :exc:`OverflowError`.
.. versionadded:: 3.2
Lock objects have the following methods:
Lock objects have the following methods:
...
@@ -132,6 +134,9 @@ Lock objects have the following methods:
...
@@ -132,6 +134,9 @@ Lock objects have the following methods:
The return value is ``True`` if the lock is acquired successfully,
The return value is ``True`` if the lock is acquired successfully,
``False`` if not.
``False`` if not.
.. versionchanged:: 3.2
The *timeout* parameter is new.
.. method:: lock.release()
.. method:: lock.release()
Releases the lock. The lock must have been acquired earlier, but not
Releases the lock. The lock must have been acquired earlier, but not
...
...
Doc/library/threading.rst
Dosyayı görüntüle @
adbc0097
...
@@ -164,6 +164,7 @@ This module also defines the following constant:
...
@@ -164,6 +164,7 @@ This module also defines the following constant:
Specifiying a timeout greater than this value will raise an
Specifiying a timeout greater than this value will raise an
:exc:`OverflowError`.
:exc:`OverflowError`.
.. versionadded:: 3.2
Detailed interfaces for the objects are documented below.
Detailed interfaces for the objects are documented below.
...
@@ -382,6 +383,8 @@ All methods are executed atomically.
...
@@ -382,6 +383,8 @@ All methods are executed atomically.
The return value is ``True`` if the lock is acquired successfully,
The return value is ``True`` if the lock is acquired successfully,
``False`` if not (for example if the *timeout* expired).
``False`` if not (for example if the *timeout* expired).
.. versionchanged:: 3.2
The *timeout* parameter is new.
.. method:: Lock.release()
.. method:: Lock.release()
...
@@ -439,6 +442,9 @@ pair) resets the lock to unlocked and allows another thread blocked in
...
@@ -439,6 +442,9 @@ pair) resets the lock to unlocked and allows another thread blocked in
and as long as the lock cannot be acquired. Return true if the lock has
and as long as the lock cannot be acquired. Return true if the lock has
been acquired, false if the timeout has elapsed.
been acquired, false if the timeout has elapsed.
.. versionchanged:: 3.2
The *timeout* parameter is new.
.. method:: RLock.release()
.. method:: RLock.release()
...
...
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