The Wayback Machine - https://web.archive.org/web/20201115143439/https://github.com/shal/multisolver
Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Multisolver

Codacy Badge

Overview

Use C++, threads, condvars and global vars or attributes to pass the result of function computation.

Function: conjunction

Truth table

A B A ∧ B
0 0 0
0 1 0
1 0 0
1 1 1

Usage

Build

make

Clean binaries

make clean

Run binary

./build/solver

Tests

x f.time f.val g.time g.val res.time res.val
1 1s true 3s true 3s true
2 3s true 1s true 3s true
3 3s false 4s true 3s false
4 5s true 3s false 3s false
5 10s true 8s false cancel canceled
6 6s false 7s true cancel canceled

Build and run all tests:

make test

You can build and run specific test.

Example

make test

License

This project is under the MIT License. See the LICENSE file for the full license text.

About

Multithreading with conditional variable

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.