13 #include <ecl/config/ecl.hpp>
14 #if defined(ECL_IS_POSIX)
21 #include <gtest/gtest.h>
22 #include <ecl/config/ecl.hpp>
24 #include "../../include/ecl/threads/threadable.hpp"
37 using ecl::Threadable;
51 class AThreadable :
public Threadable {
53 AThreadable(
const unsigned int countdown_start = 5) : top(countdown_start) {}
56 for (
unsigned int i = top; i > 0; --i ) {
74 using ecl::threads::tests::AThreadable;
88 TEST(ThreadableTests,runTest) {
92 while ( a.isRunning() ) {
102 int main(
int argc,
char **argv) {
104 testing::InitGoogleTest(&argc,argv);
105 return RUN_ALL_TESTS();
115 int main(
int argc,
char **argv) {
117 std::cout <<
"Currently not supported on your platform." << std::endl;