Giter VIP home page Giter VIP logo

drony / minithread Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roseleblood/minithread

0.0 1.0 0.0 5.13 MB

Mini Thread is a library for creating secure threads for the esp32 microcontroller. With variable condition support if required. And wrappers and many usefull wrappers

Home Page: https://roseleblood.github.io/mnthread-docs/

License: GNU Lesser General Public License v3.0

C++ 99.75% CMake 0.03% Shell 0.16% Makefile 0.06%

minithread's Introduction

Mini Thread 2.22.0

Mini Thread is a library for creating safe tasks, queues and other useful things for the esp32, in c ++. All in the background of a more secure and consistent workflow. So that your application will be smaller and more effective.

Many of the standard STL containers are replaced with their own optimized versions. Recognizable by its own namespace mn. All containers, such as vector, list, queue, rb-tree can be found in the namespace mn::container.

Various types of association classes are provided for simplicity. This is just the exchange of the used allocator from the system to the Spiram allocator, whereby certain regions can be swapped out to a different storage capacity without having to rewrite the entire program. Certain allocation in addition to a limit, the bytes used to be limited. All allocator find you under the namespace mn::memory.

The containers and pointers use as default the mn::memory::default_allocator_t.

The license that applies to the library is the LGPL.The license texts of these licenses can be found in the files LICENSE of the source code archive.

Folder Strutur

  • include and src:
    • / : all basics: task, semaphores. timer ...
    • memory: mempool handling
    • queue: FreeRTOS queue's and workqueue-engines
    • slock: ystem interrupt, schedular and ... autolock helper
  • doc: Files to create the docu with doxygen
  • example; The basic's example, and for more see extra repository: mnthread-examples

Using

Build from git from

  1. sh ./configure or ./configure --prefix=<path> # without prefix then install to /opt
  2. sh make build
  3. sh sudo or doas make install
  4. add "lib_deps = /opt/miniThread/miniThread-2.*.tar.gz" to your platformio.ini

Example

[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
framework = espidf
lib_deps = /opt/miniThread/miniThread-2.*.tar.gz

Using from platformio

# platformio.ini โ€“ project configuration file

[env:my_build_env]
platform = espressif32
framework = espidf
lib_deps =
  # RECOMMENDED
  # Accept new functionality in a backwards compatible manner and patches
  roseleblood/mini Thread @ ^2.21.0

  # Accept only backwards compatible bug fixes
  # (any version with the same major and minor versions, and an equal or greater patch version)
  roseleblood/mini Thread @ ~2.21.0

  # The exact version
  roseleblood/mini Thread @ 2.21.0

ChangeLog

For more see ChangeLog

minithread's People

Contributors

eotpcomic avatar roseleblood avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.