classes.pp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1999-2000 by Michael Van Canneyt and Florian Klaempfl
  5. Classes unit for FreeBSD
  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. {$mode objfpc}
  13. { determine the type of the resource/form file }
  14. {$define Win16Res}
  15. unit Classes;
  16. interface
  17. uses
  18. sysutils,
  19. rtlconst,
  20. types,
  21. typinfo;
  22. {$i classesh.inc}
  23. implementation
  24. uses
  25. baseunix,unix,Systhrds
  26. ;
  27. { OS - independent class implementations are in /inc directory. }
  28. {$i classes.inc}
  29. initialization
  30. CommonInit;
  31. {$ifndef ver1_0}
  32. InitCriticalSection(SynchronizeCritSect);
  33. ExecuteEvent := RtlEventCreate;
  34. SynchronizeMethod := nil;
  35. {$endif}
  36. finalization
  37. CommonCleanup;
  38. {$ifndef ver1_0}
  39. if ThreadsInited then
  40. DoneThreads;
  41. DoneCriticalSection(SynchronizeCritSect);
  42. RtlEventDestroy(ExecuteEvent);
  43. {$endif}
  44. end.
  45. {
  46. $Log$
  47. Revision 1.8 2004-12-23 09:42:42 marco
  48. * first tthread.synchronize support (merged neli's patches)
  49. Revision 1.7 2004/01/22 17:11:23 peter
  50. * classes uses types to import TPoint and TRect
  51. Revision 1.6 2004/01/10 20:13:40 michael
  52. + Some more fixes to rtlconst. Const strings moved from classes to rtlconst
  53. Revision 1.5 2004/01/03 12:18:29 marco
  54. * a lot of copyright notices and CVS logs added and fixed
  55. Revision 1.4 2003/12/22 16:16:33 marco
  56. * small 1.0 compat fix
  57. Revision 1.3 2003/11/17 10:05:51 marco
  58. * threads for FreeBSD. Not working tho
  59. Revision 1.2 2003/10/09 10:55:20 marco
  60. * fix for moving classes to rtl while cycling with 1.0 start
  61. Revision 1.1 2003/10/06 21:01:06 peter
  62. * moved classes unit to rtl
  63. Revision 1.1 2003/10/06 20:33:58 peter
  64. * classes moved to rtl for 1.1
  65. * classes .inc and classes.pp files moved to fcl/classes for
  66. backwards 1.0.x compatiblity to have it in the fcl
  67. Revision 1.6 2003/09/20 12:38:29 marco
  68. * FCL now compiles for FreeBSD with new 1.1. Now Linux.
  69. Revision 1.5 2002/09/07 15:15:24 peter
  70. * old logs removed and tabs fixed
  71. }