1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex10/main.cpp

25 lines
419 B
C++
Raw Normal View History

2020-07-09 18:09:10 +02:00
#include "shared_queue.hh"
#include "threadpool.hh"
#include <string>
#include <iostream>
int main() {
std::cout << "Set up ThreadPool" << std::endl;
ThreadPool tp;
std::cout << "Add Producer" << std::endl;
2020-07-09 21:22:39 +02:00
tp.addProducer();
2020-07-09 18:09:10 +02:00
2020-07-09 21:22:39 +02:00
std::cout << "Add Consumers" << std::endl;
tp.addConsumer();
tp.addConsumer();
2020-07-09 18:09:10 +02:00
std::cout << "Run" << std::endl;
tp.run();
std::cout << "Finishing up" << std::endl;
return 0;
}