Skip to content

Commit c5f95e2

Browse files
authored
Test if threading is causing the Windows CI issue
I *really* hope this is not why the Windows CI is failing lol
1 parent b34f8f3 commit c5f95e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

line_profiler/_line_profiler.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ cdef inline inner_trace_callback(
14571457
if not has_time:
14581458
time = hpTimer()
14591459
has_time = True
1460-
ident = PyThread_get_thread_ident()
1460+
ident = threading.get_ident() # PyThread_get_thread_ident()
14611461
last_map = &(prof._c_last_time[ident])
14621462
if deref(last_map).count(block_hash):
14631463
old = deref(last_map)[block_hash]

0 commit comments

Comments
 (0)