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
921879ab
Kaydet (Commit)
921879ab
authored
Haz 02, 2005
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Bug #1209880] Describe only the True/False return values from lock.acquire()
üst
6a15c5d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
libthread.tex
Doc/lib/libthread.tex
+2
-2
libthreading.tex
Doc/lib/libthreading.tex
+1
-2
No files found.
Doc/lib/libthread.tex
Dosyayı görüntüle @
921879ab
...
...
@@ -81,11 +81,11 @@ Lock objects have the following methods:
Without the optional argument, this method acquires the lock
unconditionally, if necessary waiting until it is released by another
thread (only one thread at a time can acquire a lock --- that's their
reason for existence)
, and returns
\code
{
None
}
. If the integer
reason for existence). If the integer
\var
{
waitflag
}
argument is present, the action depends on its
value: if it is zero, the lock is only acquired if it can be acquired
immediately without waiting, while if it is nonzero, the lock is
acquired unconditionally as before.
If an argument is present, t
he
acquired unconditionally as before.
T
he
return value is
\code
{
True
}
if the lock is acquired successfully,
\code
{
False
}
if not.
\end{methoddesc}
...
...
Doc/lib/libthreading.tex
Dosyayı görüntüle @
921879ab
...
...
@@ -167,8 +167,7 @@ All methods are executed atomically.
Acquire a lock, blocking or non-blocking.
When invoked without arguments, block until the lock is
unlocked, then set it to locked, and return. There is no
return value in this case.
unlocked, then set it to locked, and return true.
When invoked with the
\var
{
blocking
}
argument set to true, do the
same thing as when called without arguments, and return true.
...
...
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