Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

thread2: correct a bug with linux 64bit system

PyThreadState_SetAsyncExc 'C' thread function needed a long and python arg
passing default to int. Forced to long wiht ctypes.c_long()

Changeset 4be8e0270905

Parent 0c91f8d135c1

by ldufrechou

Changes to one file · Browse files at 4be8e0270905 Showing diff from parent 0c91f8d135c1 Diff from another changeset...

 
14
15
16
17
 
18
19
20
 
14
15
16
 
17
18
19
20
@@ -14,7 +14,7 @@
  """raises the exception, performs cleanup if needed"""   if not inspect.isclass(exctype):   raise TypeError("Only types can be raised (not instances)") - res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(exctype)) + res = ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(tid), ctypes.py_object(exctype))   if res == 0:   raise ValueError("invalid thread id")   elif res != 1: