syncobjs.pp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.2 2000-07-13 11:33:07 michael
  66. + removed logs
  67. }