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
f0d21c75
Kaydet (Commit)
f0d21c75
authored
Mar 30, 2009
tarafından
Jesse Noller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
merge 70783 back to 26maint
üst
d5ac4447
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletion
+9
-1
test_multiprocessing.py
Lib/test/test_multiprocessing.py
+4
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
semaphore.c
Modules/_multiprocessing/semaphore.c
+1
-1
No files found.
Lib/test/test_multiprocessing.py
Dosyayı görüntüle @
f0d21c75
...
...
@@ -548,6 +548,10 @@ class _TestLock(BaseTestCase):
self
.
assertEqual
(
lock
.
release
(),
None
)
self
.
assertRaises
((
AssertionError
,
RuntimeError
),
lock
.
release
)
def
test_lock_context
(
self
):
with
self
.
Lock
():
pass
class
_TestSemaphore
(
BaseTestCase
):
...
...
Misc/ACKS
Dosyayı görüntüle @
f0d21c75
...
...
@@ -251,6 +251,7 @@ Dinu Gherman
Jonathan Giddy
Johannes Gijsbers
Michael Gilfix
Tim Golden
Chris Gonnerman
David Goodger
Hans de Graaff
...
...
Misc/NEWS
Dosyayı görüntüle @
f0d21c75
...
...
@@ -92,6 +92,9 @@ Core and Builtins
Library
-------
- Issue #5261: Patch multiprocessing's semaphore.c to support context
manager use: "with multiprocessing.Lock()" works now.
- Issue #5177: Multiprocessing's SocketListener class now uses
socket.SO_REUSEADDR on all connections so that the user no longer needs
to wait 120 seconds for the socket to expire.
...
...
Modules/_multiprocessing/semaphore.c
Dosyayı görüntüle @
f0d21c75
...
...
@@ -546,7 +546,7 @@ static PyMethodDef semlock_methods[] = {
"acquire the semaphore/lock"
},
{
"release"
,
(
PyCFunction
)
semlock_release
,
METH_NOARGS
,
"release the semaphore/lock"
},
{
"__enter__"
,
(
PyCFunction
)
semlock_acquire
,
METH_VARARG
S
,
{
"__enter__"
,
(
PyCFunction
)
semlock_acquire
,
METH_VARARGS
|
METH_KEYWORD
S
,
"enter the semaphore/lock"
},
{
"__exit__"
,
(
PyCFunction
)
semlock_release
,
METH_VARARGS
,
"exit the semaphore/lock"
},
...
...
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