secondary_thread test
This commit is contained in:
		
							parent
							
								
									2bf96c0f76
								
							
						
					
					
						commit
						319779a16c
					
				
							
								
								
									
										11
									
								
								secondary_thread.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								secondary_thread.lua
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					done = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					threads.run(function()
 | 
				
			||||||
 | 
						for i = 1, 100000 do
 | 
				
			||||||
 | 
							print(i)
 | 
				
			||||||
 | 
						end
 | 
				
			||||||
 | 
						done = true
 | 
				
			||||||
 | 
					end)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					while done == false do
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user