rev 324 - trunk/pr

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-04-11 00:25:52 -0400 (Sun, 11 Apr 2004)
New Revision: 324

Modified:
   trunk/pr/threads.pr
Log:
Usual svn props for script.


Modified: trunk/pr/threads.pr
===================================================================
--- trunk/pr/threads.pr	2004-04-11 00:49:31 UTC (rev 323)
+++ trunk/pr/threads.pr	2004-04-11 04:25:52 UTC (rev 324)
@@ -1,30 +1,30 @@
-#!/usr/bin/env prothon
-
-# threads.pr
-
-Finished_thread_count = 0
-
-def func(n, d):
-	my_thread = Current_thread()
-	print my_thread, "started"
-	for i in n:
-		Sleep(d)
-		print my_thread, "has been running",(i+1)*d,'seconds'
-	Finished_thread_count += 1
-
-a = Thread(func, [10, 1.0000], "A")
-b = Thread(func, [ 5, 2.0000], "B")
-c = Thread(func, [ 3, 3.3333], "C")
-
-/*
-these cause an apr_error ???
-a.join()
-b.join()
-c.join()
-*/
-
-while Finished_thread_count < 3:
-	Sleep(0.1)
-print
-print 'All threads finished'
-print
+#!/usr/bin/env prothon
+
+# threads.pr
+
+Finished_thread_count = 0
+
+def func(n, d):
+	my_thread = Current_thread()
+	print my_thread, "started"
+	for i in n:
+		Sleep(d)
+		print my_thread, "has been running",(i+1)*d,'seconds'
+	Finished_thread_count += 1
+
+a = Thread(func, [10, 1.0000], "A")
+b = Thread(func, [ 5, 2.0000], "B")
+c = Thread(func, [ 3, 3.3333], "C")
+
+/*
+these cause an apr_error ???
+a.join()
+b.join()
+c.join()
+*/
+
+while Finished_thread_count < 3:
+	Sleep(0.1)
+print
+print 'All threads finished'
+print


Property changes on: trunk/pr/threads.pr
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:eol-style
   + native
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.