Examples: replaced TThread.Resume by TThread.Start in multithreading example, removed LRS file, bug #23346

git-svn-id: trunk@39345 -
This commit is contained in:
maxim 2012-11-22 19:28:35 +00:00
parent 71041f92c2
commit ca534db83b
5 changed files with 22 additions and 26 deletions

1
.gitattributes vendored
View File

@ -4399,7 +4399,6 @@ examples/multithreading/criticalsectionunit1.lfm svneol=native#text/plain
examples/multithreading/criticalsectionunit1.lrs svneol=native#text/pascal examples/multithreading/criticalsectionunit1.lrs svneol=native#text/pascal
examples/multithreading/criticalsectionunit1.pas svneol=native#text/plain examples/multithreading/criticalsectionunit1.pas svneol=native#text/plain
examples/multithreading/mainunit.lfm svneol=native#text/plain examples/multithreading/mainunit.lfm svneol=native#text/plain
examples/multithreading/mainunit.lrs svneol=native#text/pascal
examples/multithreading/mainunit.pas svneol=native#text/plain examples/multithreading/mainunit.pas svneol=native#text/plain
examples/multithreading/multithreadingexample1.lpi svneol=native#text/plain examples/multithreading/multithreadingexample1.lpi svneol=native#text/plain
examples/multithreading/multithreadingexample1.lpr svneol=native#text/plain examples/multithreading/multithreadingexample1.lpr svneol=native#text/plain

View File

@ -1,13 +1,11 @@
object Form1: TForm1 object Form1: TForm1
Caption = 'Form1'
ClientHeight = 73
ClientWidth = 408
OnCreate = FormCreate
PixelsPerInch = 112
HorzScrollBar.Page = 407
VertScrollBar.Page = 72
Left = 290 Left = 290
Height = 73 Height = 73
Top = 163 Top = 163
Width = 408 Width = 408
HorzScrollBar.Page = 407
VertScrollBar.Page = 72
Caption = 'Form1'
OnCreate = FormCreate
LCLVersion = '1.1'
end end

View File

@ -1,6 +0,0 @@
LazarusResources.Add('TForm1','FORMDATA',[
'TPF0'#6'TForm1'#5'Form1'#7'Caption'#6#5'Form1'#12'ClientHeight'#2'I'#11'Clie'
+'ntWidth'#3#152#1#8'OnCreate'#7#10'FormCreate'#13'PixelsPerInch'#2'p'#18'Hor'
+'zScrollBar.Page'#3#151#1#18'VertScrollBar.Page'#2'H'#4'Left'#3'"'#1#6'Heigh'
+'t'#2'I'#3'Top'#3#163#0#5'Width'#3#152#1#0#0
]);

View File

@ -31,7 +31,7 @@ unit MainUnit;
interface interface
uses uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs; Classes, SysUtils, Forms, Controls, Graphics, Dialogs;
type type
@ -60,6 +60,8 @@ var
implementation implementation
{$R *.lfm}
{ TForm1 } { TForm1 }
procedure TForm1.FormCreate(Sender: TObject); procedure TForm1.FormCreate(Sender: TObject);
@ -72,7 +74,7 @@ begin
// Here the code initialises anything required before the threads starts executing // Here the code initialises anything required before the threads starts executing
MyThread.Resume; MyThread.Start;
end; end;
{ TMyThread } { TMyThread }
@ -110,8 +112,5 @@ begin
inherited Create(CreateSuspended); inherited Create(CreateSuspended);
end; end;
initialization
{$I mainunit.lrs}
end. end.

View File

@ -1,18 +1,18 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<CONFIG> <CONFIG>
<ProjectOptions> <ProjectOptions>
<Version Value="7"/> <Version Value="9"/>
<General> <General>
<Flags> <Flags>
<LRSInOutputDirectory Value="False"/> <LRSInOutputDirectory Value="False"/>
</Flags> </Flags>
<SessionStorage Value="InProjectDir"/> <SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/> <MainUnit Value="0"/>
<TargetFileExt Value=""/> <ResourceType Value="res"/>
</General> </General>
<VersionInfo> <BuildModes Count="1">
<StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion="0.0.0.0"/> <Item1 Name="default" Default="True"/>
</VersionInfo> </BuildModes>
<PublishOptions> <PublishOptions>
<Version Value="2"/> <Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/> <IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@ -39,16 +39,22 @@
<Filename Value="mainunit.pas"/> <Filename Value="mainunit.pas"/>
<IsPartOfProject Value="True"/> <IsPartOfProject Value="True"/>
<ComponentName Value="Form1"/> <ComponentName Value="Form1"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/> <ResourceBaseClass Value="Form"/>
<UnitName Value="MainUnit"/> <UnitName Value="MainUnit"/>
</Unit1> </Unit1>
</Units> </Units>
</ProjectOptions> </ProjectOptions>
<CompilerOptions> <CompilerOptions>
<Version Value="8"/> <Version Value="11"/>
<SearchPaths> <SearchPaths>
<SrcPath Value="$(LazarusDir)/lcl/;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)/"/> <SrcPath Value="$(LazarusDir)/lcl;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)"/>
</SearchPaths> </SearchPaths>
<Parsing>
<SyntaxOptions>
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
<Linking> <Linking>
<Options> <Options>
<Win32> <Win32>