int main() { arena = Arena_new(); start_socket_server(); start_socket_client(); test_unconnected_put(); //fatal, reconnect start_socket_client(); test_con(); test_con_2(); //fatal, reconnect start_socket_client(); test_con(); test_put(); test_read(); test_take(); test_upt(); //fatal, reconnect start_socket_client(); test_con(); test_upl(); stop_socket_server(); return 0; }
int main() { try { test_take(); test_intermittent(); test_multi(); test_poll(); test_take_wait(); test_threshold(); test_unblock(); test_integral(); } catch (const std::exception& e) { std::cout << e.what() << std::endl; return 1; } return 0; }