Giter Club home page Giter Club logo

turf's Introduction

Turf is a configurable C++ platform adapter. It defines a common API for:

  • Thread creation
  • Thread affinities
  • Thread IDs
  • Atomic operations
  • Mutexes
  • Condition variables
  • Read-write locks
  • Semaphores
  • Events
  • Timers
  • Virtual memory
  • Heap allocators
  • Asserts

It then implements those things using POSIX, Win32, Mach, Linux, Boost, C++11 and possibly other platform APIs. You configure Turf to use the API you want.

Turf is used by Junction, a library of concurrent data structures in C++.

License

Turf uses the Simplified BSD License. You can use the source code freely in any project, including commercial applications, as long as you give credit by publishing the contents of the LICENSE file in your documentation somewhere.

Why Not Use C++11?

Junction was originally developed in C++11, but quickly ran into various limitations. Turf was written to address those limitations.

  • Turf exposes affinities, integer thread IDs, semaphores and a few other things that C++11 does not.
  • Turf is configurable, so you can compare implementations and even provide your own. The standard C++11 library is not configurable.
  • Turf atomics have more flexible initialization, copy and cast rules than C++11 atomics.
  • Turf can be used by developers who don't have access to a C++11 compiler.

Adding Turf to Your Project

For now, refer to Junction's README file for instructions.

Feedback

If you have any comments or feedback, feel free to open an issue on GitHub, or send a direct message using the contact form on my blog.

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.