Update of /cvsroot/pure-data/externals/grh/threadlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14160
Modified Files: README INSTALL Log Message: version 0.1
Index: README =================================================================== RCS file: /cvsroot/pure-data/externals/grh/threadlib/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 14 Nov 2005 21:04:38 -0000 1.1 --- README 20 Nov 2005 21:25:31 -0000 1.2 *************** *** 1,4 **** threadlib ! PD library for threaded patching heavily based on pd_devel code by Tim Blechmann (c) 2005, Georg Holzmann, grh@mur.at --- 1,4 ---- threadlib ! C and PD library for threaded patching and threaded PD externals heavily based on pd_devel code by Tim Blechmann (c) 2005, Georg Holzmann, grh@mur.at *************** *** 7,15 **** ------------------------------------------------------------------------
! contents of threadlib: ! detach run part of the patch in a helper thread ! join synchronize messages to pd's main thread ! sleep blocks the system for a specific time ! threadedsf modified threaded soundfiler from pd_devel_0.38
WARNING: --- 7,15 ---- ------------------------------------------------------------------------
! PD objects for threaded patching: ! - detach run part of the patch in a helper thread ! - join synchronize messages to pd's main thread ! - sleep blocks the system for a specific time ! - threadedsf modified threaded soundfiler from pd_devel_0.38
WARNING: *************** *** 18,22 **** externals/internals are not threadsafe!
! REQUIREMENT: pd >= 0.39
Many thanks to Tim Blechmann for his code and help! --- 18,31 ---- externals/internals are not threadsafe!
! Features for PD external programmers: ! - lockfree FIFO from pd_devel ! - callback system like in pd_devel: ! Instead of the idle callbacks, which are not really useable ! in current main pd, it uses clock callbacks ! - USAGE: you have to link your externals against threadlib ! (see sndfiler as an example) ! - ADVANTAGES: so it's possible to write threaded externals ! for main and devel pd with the same source code ! (using the lockfree FIFO and sys_callback)
Many thanks to Tim Blechmann for his code and help! *************** *** 44,53 **** are being run in the main pd thread.
- threadedsf: - This is the threaded soundfiler from pd devel 0.38 by Tim Blechmann, - adapted to work with main pd >= 0.39. - Instead of the idle callbacks, which are not really useable in current - main pd, it uses clock-callbacks (and also the lockfree FIFO of pd devel). - !!! WARNING: !!! detach/join provide the possibility of threaded patching. --- 53,56 ----
Index: INSTALL =================================================================== RCS file: /cvsroot/pure-data/externals/grh/threadlib/INSTALL,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** INSTALL 14 Nov 2005 21:04:38 -0000 1.1 --- INSTALL 20 Nov 2005 21:25:31 -0000 1.2 *************** *** 1,3 **** ! threadlib installation
1) open the right makefile for your platform/compiler --- 1,8 ---- ! threadlib binary: ! get them on http://grh.mur.at/software/threadlib.html ! and follow the instructions there ! ! ! threadlib compilation:
1) open the right makefile for your platform/compiler