mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:49:23 +02:00
* fixes to make it compilable
This commit is contained in:
parent
a970dd85d1
commit
bd992ce6a1
@ -38,8 +38,8 @@ MKDIR=mkdir
|
|||||||
.SUFFIXES: .pp .ppu .pas
|
.SUFFIXES: .pp .ppu .pas
|
||||||
.PHONY: all install clean units progs
|
.PHONY: all install clean units progs
|
||||||
|
|
||||||
INCDIR=../inc
|
INCDIR=../../inc
|
||||||
CPUDIR=../$(CPU)
|
CPUDIR=../../$(CPU)
|
||||||
|
|
||||||
include $(INCDIR)/Makefile.inc
|
include $(INCDIR)/Makefile.inc
|
||||||
|
|
||||||
|
@ -34,7 +34,10 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.3 1998-05-06 13:00:25 michael
|
Revision 1.4 1998-09-30 13:41:02 florian
|
||||||
|
* fixes to make it compilable
|
||||||
|
|
||||||
|
Revision 1.3 1998/05/06 13:00:25 michael
|
||||||
+ Added strings to uses clause, for TStrings class.
|
+ Added strings to uses clause, for TStrings class.
|
||||||
|
|
||||||
Revision 1.2 1998/05/04 14:31:51 michael
|
Revision 1.2 1998/05/04 14:31:51 michael
|
||||||
@ -42,5 +45,4 @@ end.
|
|||||||
|
|
||||||
Revision 1.1 1998/05/04 12:16:01 florian
|
Revision 1.1 1998/05/04 12:16:01 florian
|
||||||
+ Initial revisions after making a new directory structure
|
+ Initial revisions after making a new directory structure
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@ -25,11 +25,12 @@ procedure TCriticalSection.Leave;
|
|||||||
Release;
|
Release;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
|
||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.1 1998-09-29 11:14:25 florian
|
Revision 1.2 1998-09-30 13:41:04 florian
|
||||||
|
* fixes to make it compilable
|
||||||
|
|
||||||
|
Revision 1.1 1998/09/29 11:14:25 florian
|
||||||
+ initial revision
|
+ initial revision
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,20 +20,48 @@ type
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
TCriticalSection = class(TSyncroObject)
|
TCriticalSection = class(TSyncroObject)
|
||||||
|
{$ifdef win32}
|
||||||
private
|
private
|
||||||
CriticalSection : TRTLCriticalSection;
|
CriticalSection : TRTLCriticalSection;
|
||||||
|
{$endif win32}
|
||||||
public
|
public
|
||||||
procedure Acquire;override;
|
procedure Acquire;override;
|
||||||
procedure Release;override;
|
procedure Release;override;
|
||||||
procedure Enter;
|
procedure Enter;
|
||||||
procedure Leave;
|
procedure Leave;
|
||||||
constructor Create;
|
constructor Create;
|
||||||
destructor Destroy;
|
destructor Destroy;override;
|
||||||
|
end;
|
||||||
|
|
||||||
|
THandleObject = class(TSyncroObject)
|
||||||
|
protected
|
||||||
|
FHandle : TEventHandle;
|
||||||
|
FLastError : Integer;
|
||||||
|
public
|
||||||
|
destructor destroy;override;
|
||||||
|
property Handle : TEventHandle read FHandle;
|
||||||
|
property LastError : Integer read FLastError;
|
||||||
|
end;
|
||||||
|
|
||||||
|
TEventObject = class(THandleObject)
|
||||||
|
public
|
||||||
|
constructor Create(EventAttributes : PSecurityAttributes;
|
||||||
|
ManualReset,InitialState : Boolean;const Name : string);
|
||||||
|
procedure ResetEvent;
|
||||||
|
procedure SetEvent;
|
||||||
|
function WaitFor(Timeout : Cardinal) : TWaitResult;
|
||||||
|
end;
|
||||||
|
|
||||||
|
TSimpleEvent = class(TEventObject)
|
||||||
|
constructor Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.1 1998-09-29 11:14:25 florian
|
Revision 1.2 1998-09-30 13:41:05 florian
|
||||||
|
* fixes to make it compilable
|
||||||
|
|
||||||
|
Revision 1.1 1998/09/29 11:14:25 florian
|
||||||
+ initial revision
|
+ initial revision
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,22 +12,23 @@
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
|
||||||
unit syncobjs;
|
unit syncobjs;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
sysutils;
|
windows,sysutils;
|
||||||
|
|
||||||
{$syncobjsh.inc}
|
type
|
||||||
|
PSecurityAttributes = Windows.PSecurityAttributes;
|
||||||
|
TSecurityAttributes = Windows.TSecurityAttributes;
|
||||||
|
TEventHandle = THandle;
|
||||||
|
|
||||||
|
{$I syncobjsh.inc}
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
{$I syncobjs.inc}
|
||||||
windows;
|
|
||||||
|
|
||||||
{$syncobjs.inc}
|
|
||||||
|
|
||||||
procedure TCriticalSection.Acquire;
|
procedure TCriticalSection.Acquire;
|
||||||
|
|
||||||
@ -55,11 +56,45 @@ unit syncobjs;
|
|||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
destructor THandleObject.destroy;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
constructor TEvent.Create(EventAttributes : PSecurityAttributes;
|
||||||
|
ManualReset,InitialState : Boolean;const Name : string);
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TEvent.ResetEvent;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TEvent.SetEvent;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TEvent.WaitFor(Timeout : Cardinal) : TWaitResult;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
constructor TSimpleEvent.Create;
|
||||||
|
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.1 1998-09-29 11:15:24 florian
|
Revision 1.2 1998-09-30 13:41:06 florian
|
||||||
|
* fixes to make it compilable
|
||||||
|
|
||||||
|
Revision 1.1 1998/09/29 11:15:24 florian
|
||||||
+ initial revision
|
+ initial revision
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user