Skip to content
Dian-Lun Lin (Luan) edited this page Oct 19, 2023 · 1 revision
#include <taro.hpp>
#include <iostream>
int main() {
  taro::Taro taro{4}; // number of threads
  auto task_a = taro.emplace([](){
    std::cout << "task a\n";
  });
  auto task_b = taro.emplace([](){
    std::cout << "task b\n";
  });
  auto task_c = taro.emplace([](){
    std::cout << "task c\n";
  });
  auto task_d = taro.emplace([](){
    std::cout << "task d\n";
  });

  // dependency
  // A -> C
  // B -> C
  // C -> D
  task_a.precede(task_c);
  task_b.precede(task_c);
  task_c.precede(task_d);
  
  taro.schedule();
  taro.wait();
}

Introduction


Documentation


Problems with Taro

TBD

Release Schedule

TBD

Clone this wiki locally