From 53c16e06983f9b03464f41b8c0ed3206382c5538 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 9 Jan 2005 04:59:30 +0000 Subject: support for Python threads, at last small fixes merged in 20041229-newdetach branch. renamed locking functions svn path=/trunk/; revision=2483 --- externals/grill/py/pd/thread-1.pd | 47 ++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 18 deletions(-) (limited to 'externals/grill/py/pd/thread-1.pd') diff --git a/externals/grill/py/pd/thread-1.pd b/externals/grill/py/pd/thread-1.pd index b2daa5f0..e46f6521 100644 --- a/externals/grill/py/pd/thread-1.pd +++ b/externals/grill/py/pd/thread-1.pd @@ -1,11 +1,11 @@ -#N canvas 135 178 644 401 12; +#N canvas 135 178 648 405 12; #X msg 35 292 help; #X msg 34 317 doc; #X msg 70 318 doc+; #X floatatom 142 340 5 0 0 0 - - -; #X text 17 66 This demonstrates threading. See the threads.py file. ; -#X obj 137 243 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +#X obj 137 243 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X msg 137 263 detach \$1; #X floatatom 250 341 5 0 0 0 - - -; @@ -19,31 +19,42 @@ #X obj 157 208 0; #X text 84 114 without threads; #X text 248 112 with threads; -#X text 249 129 non-blocking; #X text 175 362 watch that!; -#X msg 411 154 stop; -#X text 381 133 you can even stop it; +#X msg 421 264 stop; +#X text 391 243 you can even stop it; #X obj 142 306 pyext threads ex1; #X text 90 128 - blocking!! -; #X obj 16 13 cnv 15 600 40 empty empty py/pyext 10 22 0 24 -260818 -1 0; -#X text 213 32 http://www.parasitaere-kapazitaeten.net; -#X text 213 16 Python script objects \, (C)2003-2004 Thomas Grill; -#X connect 0 0 20 0; -#X connect 1 0 20 0; -#X connect 2 0 20 0; +#X obj 407 150 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1 +-1; +#X obj 407 177 t b b b; +#X text 383 112 with threads; +#X text 249 129 non-blocking; +#X text 384 129 parallel; +#X obj 445 205 2; +#X text 213 32 http://grrrr.org/ext; +#X text 213 16 Python script objects \, (C)2003-2005 Thomas Grill; +#X connect 0 0 19 0; +#X connect 1 0 19 0; +#X connect 2 0 19 0; #X connect 5 0 6 0; -#X connect 6 0 20 0; +#X connect 6 0 19 0; #X connect 8 0 11 0; #X connect 9 0 10 0; -#X connect 10 0 20 1; -#X connect 10 1 20 2; +#X connect 10 0 19 1; +#X connect 10 1 19 2; #X connect 10 2 13 0; -#X connect 11 0 20 1; -#X connect 11 1 20 2; +#X connect 11 0 19 1; +#X connect 11 1 19 2; #X connect 11 2 12 0; #X connect 12 0 5 0; #X connect 13 0 5 0; -#X connect 18 0 20 0; -#X connect 20 0 3 0; -#X connect 20 1 7 0; +#X connect 17 0 19 0; +#X connect 19 0 3 0; +#X connect 19 1 7 0; +#X connect 22 0 23 0; +#X connect 23 0 19 1; +#X connect 23 1 19 2; +#X connect 23 2 27 0; +#X connect 27 0 5 0; -- cgit v1.2.1