syncobjs.pp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1998 by Florian Klaempfl
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. unit syncobjs;
  13. interface
  14. uses
  15. windows,sysutils;
  16. type
  17. PSecurityAttributes = Windows.PSecurityAttributes;
  18. TSecurityAttributes = Windows.TSecurityAttributes;
  19. TEventHandle = THandle;
  20. {$I syncobh.inc}
  21. implementation
  22. {$I syncob.inc}
  23. procedure TCriticalSection.Acquire;
  24. begin
  25. EnterCriticalSection(CriticalSection);
  26. end;
  27. procedure TCriticalSection.Release;
  28. begin
  29. LeaveCriticalSection(CriticalSection);
  30. end;
  31. constructor TCriticalSection.Create;
  32. begin
  33. inherited Create;
  34. InitializeCriticalSection(CriticalSection);
  35. end;
  36. destructor TCriticalSection.Destroy;
  37. begin
  38. DeleteCriticalSection(CriticalSection);
  39. inherited Destroy;
  40. end;
  41. destructor THandleObject.destroy;
  42. begin
  43. CloseHandle(FHandle);
  44. inherited Destroy;
  45. end;
  46. constructor TEvent.Create(EventAttributes : PSecurityAttributes;
  47. ManualReset,InitialState : Boolean;const Name : string);
  48. begin
  49. end;
  50. procedure TEvent.ResetEvent;
  51. begin
  52. end;
  53. procedure TEvent.SetEvent;
  54. begin
  55. end;
  56. function TEvent.WaitFor(Timeout : Cardinal) : TWaitResult;
  57. begin
  58. end;
  59. constructor TSimpleEvent.Create;
  60. begin
  61. end;
  62. end.
  63. {
  64. $Log$
  65. Revision 1.1 2000-07-13 06:33:49 michael
  66. + Initial import
  67. Revision 1.6 2000/01/06 01:20:36 peter
  68. * moved out of packages/ back to topdir
  69. Revision 1.1 2000/01/03 19:33:11 peter
  70. * moved to packages dir
  71. Revision 1.4 1999/06/07 15:55:32 michael
  72. + Renamed include files to fit 8.3
  73. Revision 1.3 1998/10/01 21:56:37 florian
  74. + THandleObject completed
  75. Revision 1.2 1998/09/30 13:41:06 florian
  76. * fixes to make it compilable
  77. Revision 1.1 1998/09/29 11:15:24 florian
  78. + initial revision
  79. }