threadlib

threadlib is a C and PD library for threaded patching and threaded PD externals.
Download

threadlib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Georg Holzmann
  • Publisher web site:
  • http://grh.mur.at/

threadlib Tags


threadlib Description

threadlib is a C and PD library for threaded patching and threaded PD externals. threadlib is a C and PD library for threaded patching and threaded PD externals. It is heavily based on pd_devel code by Tim Blechmann (his detach/join for pd_devel).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 timeWARNING:These objects (especially detach/join) are very experimental and may crash your patches if you use them in a wrong way, because some externals/internals of PD are not threadsafe!!!Here are some key features of "threadlib":· 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 callbacksUSAGE: you have to link your externals against threadlib - see sndfiler as an example.ADVANTAGES: so it's possible to use the lockfree FIFO and sys_callback in main pd (and the same source code for main and devel pd)


threadlib Related Software