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
2dcf46ee
Kaydet (Commit)
2dcf46ee
authored
Nis 25, 2009
tarafından
Jeroen Ruigrok van der Werven
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rewrite a sentence to be more in line with the rest of the documentation with
regard to person and audience.
üst
bcddf677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
init.rst
Doc/c-api/init.rst
+7
-7
No files found.
Doc/c-api/init.rst
Dosyayı görüntüle @
2dcf46ee
...
@@ -492,13 +492,13 @@ thread could immediately acquire the lock and store its own thread state in the
...
@@ -492,13 +492,13 @@ thread could immediately acquire the lock and store its own thread state in the
global variable). Conversely, when acquiring the lock and restoring the thread
global variable). Conversely, when acquiring the lock and restoring the thread
state, the lock must be acquired before storing the thread state pointer.
state, the lock must be acquired before storing the thread state pointer.
Why am I going on with so much detail about this? Because when threads ar
e
It is important to note that when threads are created from C, they don't hav
e
created from C, they don't have the global interpreter lock, nor is there a
the global interpreter lock, nor is there a thread state data structure for
th
read state data structure for them. Such threads must bootstrap themselves
th
em. Such threads must bootstrap themselves into existence, by first
into existence, by first creating a thread state data structure, then acquiring
creating a thread state data structure, then acquiring the lock, and finally
the lock, and finally storing their thread state pointer, before they can start
storing their thread state pointer, before they can start using the Python/C
using the Python/C API. When they are done, they should reset the thread stat
e
API. When they are done, they should reset the thread state pointer, releas
e
pointer, release
the lock, and finally free their thread state data structure.
the lock, and finally free their thread state data structure.
Beginning with version 2.3, threads can now take advantage of the
Beginning with version 2.3, threads can now take advantage of the
:cfunc:`PyGILState_\*` functions to do all of the above automatically. The
:cfunc:`PyGILState_\*` functions to do all of the above automatically. The
...
...
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