espp/task

0.21.0

uploaded 2 days ago
C++ component representing a task which can be started / stopped / resumed.

readme

# Task Component

The `Task` component provides a cross-platform API around `std::thread` with
some additional configuration of stack size, priority, and core affinity for
FreeRTOS / ESP, as well as providing a callback API which enables interruptible
sleeps and termination of the task.

It also supports firing off syncrhonous (blocking) and asynchronous
(non-blocking) functions in separate threads, with the option of configuring the
core id and other esp-specific paramters.

## Example

The [example](./example) shows some various different ways of starting and
stopping tasks, as well as examples of how to wait, block, exit early, and run
long-running computations within tasks using the `task` component.

Links

Supports all targets

Maintainer

  • William Emfinger <waemfinger@gmail.com>

License: MIT

To add this component to your project, run:

idf.py add-dependency "espp/task^0.21.0"

or download archive

Stats

  • Archive size
    Archive size ~ 15.55 KB
  • Downloaded in total
    Downloaded in total 3 times
  • Downloaded this version
    This version: 3 times

Badge

espp/task version: 0.21.0
|