/** --------------------------------------------------------------------------- * -*- c++ -*- * @file: active_test.cpp * * Copyright (c) 2017 Yann Herklotz Grave * MIT License, see LICENSE file for more details. * ---------------------------------------------------------------------------- */ #include #include using namespace yage; void print_random() { std::cout << "hello world" << "\n"; } void print_h() { std::cout << "Helllllllo" << "\n"; } void flush() { std::cout << "flush" << std::endl; } int main() { auto a = Active::create(); a->send(print_random); a->send(print_h); a->send(flush); std::cout << std::endl; for (int i = 0; i < 1000000; i++) { } std::cout << std::endl; }