Protothreads

Protothreads are a type of extremely lightweight, stackless threads written in 100% portable C. While protothreads were originally designed for severely memory-constrained systems such as deeply embedded systems, they have found a number of uses as a general purpose portable library as well.

Tags Software Development Embedded Systems Libraries
Licenses BSD Revised
Operating Systems OS Independent
Implementation C

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  02 Oct 2006 10:31
  • Rrelease-after

Changes: PT_SCHEDULE() now returns true both when a protothread is waiting and when it has yielded. A README file has been added for Visual C++ users that explains how protothreads may trigger a compiler bug and how to prevent this from happening.

  • Rrelease-mid
  •  03 Jun 2006 14:35
  • Rrelease-after

Changes: It is now possible to determine if a protothread is waiting, or has yielded, exited, or ended by looking at the return value of a protothread function.

  • Rrelease-mid
  •  08 Oct 2005 06:35
  • Rrelease-after

Changes: This release fixes a typo in example-buffer.c so that the examples now compile cleanly.

  • Rrelease-mid
  •  06 Oct 2005 07:55
  • Rrelease-after

Changes: A missing parenthesis in the implementation of PT_SCHEDULE() that could cause problems has been fixed. The PT_YIELDING() macro is no longer needed inside a protothread that yields.

  • Rrelease-mid
  •  01 Apr 2005 06:56
  • Rrelease-after

Changes: This release adds PT_YIELD() functionality that allows a protothread to yield the CPU. PT_SPAWN() now properly takes two pt state structures as parameters. The examples should compile under MS Windows.

33503f860553e926820a7c3e424d4bc7_thumb

Project Spotlight

Bugzero

A Web-based bug tracking, defect tracking, and help desk customer support system

5041094de5d489a2d2061a06f885db4f_thumb

Project Spotlight

INSERT

A credit card Linux rescue system with NTFS write support and virus scanning.