mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 09:19:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			388 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			388 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
program MultiThreadingExample1;
 | 
						|
 | 
						|
{$mode objfpc}{$H+}
 | 
						|
 | 
						|
uses
 | 
						|
  // for multi threading the cthreads unit must be used on unix systems:
 | 
						|
  // for example: Linux, MacOSX, FreeBSD, Solaris
 | 
						|
  {$IFDEF UNIX}
 | 
						|
  cthreads,
 | 
						|
  {$ENDIF}
 | 
						|
  Interfaces, // this includes the LCL widgetset
 | 
						|
  Forms, MainUnit;
 | 
						|
 | 
						|
begin
 | 
						|
  Application.Initialize;
 | 
						|
  Application.CreateForm(TForm1, Form1);
 | 
						|
  Application.Run;
 | 
						|
end.
 | 
						|
 |