Git Product home page Git Product logo

trunkore's Introduction

trunkore

Super tool to manage concurrently running tasks

Table of contents

What is it

Want to do many things simultaneously, but have only two arms? Dont panic, trunkore is exactly the thing you need now! Put your business logic in dynamic library and easily run it with other stuff concurrently, ofc with various abilities of state-managing such as initializing/suspending/deinitializing tasks. And yeah, only in this universe, trunkore is not only free to use, but also opensourced. What a place to live, right? ;)

How to build

trunkore uses CMake as build system

git clone https://github.com/XXXRef/trunkore.git
cd trunkore
mkdir BUILD
cd BUILD
cmake ..

NOTES:

  1. For now only x86-Debug build configuration tested
  2. You can build only trunkore without test job lib, just cmake the "trunkore" subfolder

How to use

trunkore manages jobs that are contained each in its own job library. So you need to implement your own IJobOwner class (including i_jobowner.hpp, types.hpp, utils.hpp like in TestJobLib EXT/inc folder), and override {init(),play(),deinit()} methods with your business logic. Build result as dynamic lib and you are ready to go.

Commands:

  1. Add job into trunkore
ADD <jobID> <jobLibPath> <jobConfigPath>
//Example: ADD job0 C:\job.dll C:\job_cfg.cfg
  1. Remove job
RM <jobID>
  1. Init job
INIT <jobID>
  1. Deinit job
DEINIT <jobID>
  1. Play job (for the first time or one being stopped)
PLAY <jobID>
  1. Stop running job
STOP <jobID>
  1. Get state of job
STATE <jobID>
  1. List job IDs and their states
LS

NOTES:

  1. < jobConfigPath > - path to config file with whatever additional info you want for your job to initialize itself

trunkore's People

Watchers

XXX& 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.