Projects / Protothreads

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
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  02 Oct 2006 10:31

Release Notes: 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.

  •  03 Jun 2006 14:35

Release Notes: 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.

  •  08 Oct 2005 06:35

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

  •  06 Oct 2005 07:55

Release Notes: 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.

  •  01 Apr 2005 06:56

Release Notes: 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.

Screenshot

Project Spotlight

HTTrack/WebHTTrack

An offline browser which copies Web sites to your computer.

Screenshot

Project Spotlight

picloader

A serial uploader/bootloader for PICmicros.