diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-27 15:04:20 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-27 15:04:20 +0000 |
commit | 53987e26a9a9cff05259fa2c9c21da10d650bc27 (patch) | |
tree | 6530db798d9c28e7e7a7df2abd2e8b7250f055cb /src/macosx0/Wrapper/PseudoThread.pas | |
parent | 4e4e213f8978e5c9e36e0923a0476ca0ae9aa4cf (diff) | |
download | usdx-53987e26a9a9cff05259fa2c9c21da10d650bc27.tar.gz usdx-53987e26a9a9cff05259fa2c9c21da10d650bc27.tar.xz usdx-53987e26a9a9cff05259fa2c9c21da10d650bc27.zip |
rename MacOSX part1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1312 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/macosx0/Wrapper/PseudoThread.pas')
-rw-r--r-- | src/macosx0/Wrapper/PseudoThread.pas | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/macosx0/Wrapper/PseudoThread.pas b/src/macosx0/Wrapper/PseudoThread.pas new file mode 100644 index 00000000..16157646 --- /dev/null +++ b/src/macosx0/Wrapper/PseudoThread.pas @@ -0,0 +1,48 @@ +unit PseudoThread; + +{$IFDEF FPC} + {$MODE Delphi} +{$ENDIF} + +{$I switches.inc} + +interface + +type + +// Debugging threads with XCode doesn't seem to work. +// We use PseudoThread in Debug mode to get proper debugging. +TPseudoThread = class(TObject) + private + protected + Terminated, + FreeOnTerminate : Boolean; + procedure Execute; virtual; abstract; + procedure Resume; + procedure Suspend; + public + constructor Create(const suspended : Boolean); +end; + +implementation + +{ TPseudoThread } + +constructor TPseudoThread.Create(const suspended : Boolean); +begin + if not suspended then begin + Execute; + end; +end; + +procedure TPseudoThread.Resume; +begin + Execute; +end; + +procedure TPseudoThread.Suspend; +begin +end; + +end. + |