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
385e7c69
Kaydet (Commit)
385e7c69
authored
Mar 17, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implement exit_thread through SystemExit exception
üst
fbd30e91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
threadmodule.c
Modules/threadmodule.c
+8
-7
No files found.
Modules/threadmodule.c
Dosyayı görüntüle @
385e7c69
...
@@ -200,8 +200,12 @@ t_bootstrap(args_raw)
...
@@ -200,8 +200,12 @@ t_bootstrap(args_raw)
res
=
call_object
(
func
,
arg
);
res
=
call_object
(
func
,
arg
);
DECREF
(
args
);
/* Matches the INCREF(args) in thread_start_new_thread */
DECREF
(
args
);
/* Matches the INCREF(args) in thread_start_new_thread */
if
(
res
==
NULL
)
{
if
(
res
==
NULL
)
{
fprintf
(
stderr
,
"Unhandled exception in thread:
\n
"
);
if
(
err_occurred
()
==
SystemExit
)
print_error
();
/* From pythonmain.c */
err_clear
();
else
{
fprintf
(
stderr
,
"Unhandled exception in thread:
\n
"
);
print_error
();
/* From pythonmain.c */
}
}
}
else
else
DECREF
(
res
);
DECREF
(
res
);
...
@@ -236,13 +240,10 @@ thread_exit_thread(self, args)
...
@@ -236,13 +240,10 @@ thread_exit_thread(self, args)
object
*
self
;
/* Not used */
object
*
self
;
/* Not used */
object
*
args
;
object
*
args
;
{
{
object
*
frame
;
if
(
!
getnoarg
(
args
))
if
(
!
getnoarg
(
args
))
return
NULL
;
return
NULL
;
frame
=
save_thread
();
/* Should never be NULL */
err_set
(
SystemExit
);
DECREF
(
frame
);
return
NULL
;
exit_thread
();
for
(;;)
{
}
/* Should not be reached */
}
}
#ifndef NO_EXIT_PROG
#ifndef NO_EXIT_PROG
...
...
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