@@ -2617,17 +2617,15 @@ TPythonThread = class(TThread)
2617
2617
protected
2618
2618
procedure ExecuteWithPython ; virtual ; abstract ;
2619
2619
public
2620
- procedure Py_Begin_Allow_Threads ;
2621
- procedure Py_End_Allow_Threads ;
2620
+ class procedure Py_Begin_Allow_Threads ;
2621
+ class procedure Py_End_Allow_Threads ;
2622
2622
// The following procedures are redundant and only for
2623
2623
// compatibility to the C API documentation.
2624
- procedure Py_Begin_Block_Threads ;
2625
- procedure Py_Begin_Unblock_Threads ;
2624
+ class procedure Py_Begin_Block_Threads ;
2625
+ class procedure Py_Begin_Unblock_Threads ;
2626
2626
2627
- property ThreadState: PPyThreadState read fThreadState
2628
- write fThreadState;
2629
- property ThreadExecMode: TThreadExecMode read fThreadExecMode
2630
- write fThreadExecMode;
2627
+ property ThreadState : PPyThreadState read fThreadState;
2628
+ property ThreadExecMode: TThreadExecMode read fThreadExecMode write fThreadExecMode;
2631
2629
end ;
2632
2630
{ $HINTS ON}
2633
2631
@@ -8462,24 +8460,24 @@ procedure TPythonThread.Execute;
8462
8460
end ;
8463
8461
8464
8462
8465
- procedure TPythonThread.Py_Begin_Allow_Threads ;
8463
+ class procedure TPythonThread.Py_Begin_Allow_Threads ;
8466
8464
begin
8467
8465
with GetPythonEngine do
8468
8466
f_savethreadstate := PyEval_SaveThread;
8469
8467
end ;
8470
8468
8471
- procedure TPythonThread.Py_End_Allow_Threads ;
8469
+ class procedure TPythonThread.Py_End_Allow_Threads ;
8472
8470
begin
8473
8471
with GetPythonEngine do
8474
8472
PyEval_RestoreThread( f_savethreadstate);
8475
8473
end ;
8476
8474
8477
- procedure TPythonThread.Py_Begin_Block_Threads ;
8475
+ class procedure TPythonThread.Py_Begin_Block_Threads ;
8478
8476
begin
8479
8477
Py_End_Allow_Threads;
8480
8478
end ;
8481
8479
8482
- procedure TPythonThread.Py_Begin_Unblock_Threads ;
8480
+ class procedure TPythonThread.Py_Begin_Unblock_Threads ;
8483
8481
begin
8484
8482
Py_Begin_Allow_Threads;
8485
8483
end ;
0 commit comments