GithubHelp home page GithubHelp logo

samples's Introduction

This repository contains some data structures and sample applications which demonstrate low-level lock-free concepts using Mintomic. There are two sample applications:

  • ArrayOfItems
  • HashTable1

CMake is required.

Build Instructions

The following steps work in Windows, Linux and MacOS.

First, clone this repository as you normally would.

$ git clone https://github.com/mintomic/samples

The repository contains Mintomic as a submodule. If you cloned using the above command line, you'll need to manually update the submodule. Otherwise, the mintomic/ subdirectory will be empty, and things won't build.

$ cd samples
$ git submodule update --init

Next, suppose you want to build the ArrayOfItems sample. Descend into the projects/arrayofitems/ subdirectory and run CMake as you normally would. It's customary to run it from a subdirectory named build/.

$ cd projects/arrayofitems
$ mkdir build
$ cd build
$ cmake ..

If the above CMake command line does not generate the project type you want, try again using CMake's -G option, or use the CMake GUI.

To generate an Xcode project for iOS devices, use the following CMake command line:

$ cmake -DCMAKE_TOOLCHAIN_FILE=../../../mintomic/cmake/iOS.cmake -G "Xcode" ..

After running CMake, you will be left with some project/solution files for your IDE, or some Unix Makefiles. You should know what to do at this point. Remember to select ArrayOfItems as the Startup Project (Visual Studio) or the Active Scheme (Xcode).

It's highly recommended to build and run the Release configuration. Select this in your IDE the usual way, or if you're working with Unix Makefiles, specify the build type on the CMake command line:

$ cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ..

samples's People

Contributors

preshing avatar

Watchers

Michael Purcaro 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.