GithubHelp home page GithubHelp logo

coredumped / libfnx Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 937 KB

Provides a set of usable classes that will allow you to create programs that are easily portable between Linux and Mac. These set of classes where originally intended to be used as a foundation for PushMeMail's e-mail poller daemons.

License: MIT License

Shell 86.19% C 0.83% C++ 12.98%

libfnx's Introduction

fn(x) C++ Wrappers Classes

Build Status

Join the chat at https://gitter.im/coredumped/libfnx

Provides a set of usable classes that will allow you to create programs that are easily portable between Linux and Mac. These set of classes where originally intended to be used as a foundation for PushMeMail's e-mail poller daemons.

Features

  • POSIX based multithreading classes Classes
  • GenericThread: implements the basic building block for a thread, just override the operator()() method and start with ThreadDispatcher::start()
  • Mutex: a MUtual EXclussion mechanism class, implements lock/unlock.
  • RWLock: our implementation of read/write locks.
  • AtomicFlag: allows to have a shared boolean object, very useful for those times when you need a flag to be shared among threads.
  • AtomicVar: is a template that can be use to have shared numeric values between threads, shared counters perhaps?
  • Thread-safe data-structures
  • SharedSet: template class that allows to implement thread-safe shared sets.
  • SharedMap: template class that implements thread-safe shared maps.
  • SharedVector: Allows to implement vectors that can be shared between threads.
  • SharedQueue: A template that allows to implement shared queues between threads.
  • Exception handling (this one is pretty primitive)
  • GenericException: is the basic building block for all types of exceptions.
  • MutexLockException: thrown when an attempt to lock a previously locked mutex is made, very handy!!!
  • ThreadExecutionException: throws when an attempt to launch a thread fails.
  • APNS (Apple© Push Notification Server) integration
  • APNSNotificationThread: A thread that takes care of dispatching push notification messages to the APNS cloud, it only needs a queue of NotificationPayload objects and the mandatory certificates to do its magic, easy as eating a piece of cake.
  • APNSFeedbackThread: still a work in progress but it is intended as an interface with the APNS feedback service, the one that tells you back if a delivery failed.
  • Thread-safe logging facilities
  • MTLogger: a mechanism that allows you to write logs to a single file from any thread concurrently while keeping the coherence and registering which thread originated the message.

libfnx's People

Contributors

coredumped avatar gitter-badger avatar

Watchers

 avatar James Cloos 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.