Skip to content

Commit 54210a1

Browse files
committed
Made class procedures Py_Begin_Allow_Threads, Py_End_Allow_Threads public
1 parent c51a13f commit 54210a1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Source/PythonEngine.pas

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,19 +2641,18 @@ TPythonThread = class(TThread)
26412641
private class threadvar
26422642
f_savethreadstate: PPyThreadState;
26432643

2644-
// Do not overwrite Execute! Use ExecuteWithPython instead!
2644+
// Do not overwrite Execute! Use ExecuteWithPython instead!
26452645
procedure Execute; override;
26462646
protected
26472647
procedure ExecuteWithPython; virtual; abstract;
2648-
2648+
public
26492649
class procedure Py_Begin_Allow_Threads;
26502650
class procedure Py_End_Allow_Threads;
2651-
// The following procedures are redundant and only for
2652-
// compatibility to the C API documentation.
2651+
// The following procedures are redundant and only for
2652+
// compatibility to the C API documentation.
26532653
class procedure Py_Begin_Block_Threads;
26542654
class procedure Py_Begin_Unblock_Threads;
26552655

2656-
public
26572656
property ThreadState : PPyThreadState read fThreadState;
26582657
property ThreadExecMode: TThreadExecMode read fThreadExecMode write fThreadExecMode;
26592658
end;

0 commit comments

Comments
 (0)