File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ cdef int ssl_SSL_ERROR_WANT_READ = ssl.SSL_ERROR_WANT_READ
125
125
cdef int ssl_SSL_ERROR_WANT_WRITE = ssl.SSL_ERROR_WANT_WRITE
126
126
cdef int ssl_SSL_ERROR_SYSCALL = ssl.SSL_ERROR_SYSCALL
127
127
128
- cdef long MAIN_THREAD_ID = < long > threading.main_thread().ident
128
+ cdef uint64_t MAIN_THREAD_ID = < long > threading.main_thread().ident
129
129
130
130
cdef int subprocess_PIPE = subprocess.PIPE
131
131
cdef int subprocess_STDOUT = subprocess.STDOUT
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ cdef class Loop:
45
45
bint _running
46
46
bint _stopping
47
47
48
- long _thread_id
48
+ uint64_t _thread_id
49
49
bint _thread_is_main
50
50
51
51
object _task_factory
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ cdef class Loop:
638
638
cdef inline _check_thread(self ):
639
639
if self ._thread_id == 0 :
640
640
return
641
- cdef long thread_id = PyThread_get_thread_ident()
641
+ cdef uint64_t thread_id = PyThread_get_thread_ident()
642
642
if thread_id != self ._thread_id:
643
643
raise RuntimeError (
644
644
" Non-thread-safe operation invoked on an event loop other "
You can’t perform that action at this time.
0 commit comments