blob: 47871df32568b41e9f502267214014596cf82ebf [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001#include <cc++/thread.h>
2using namespace ost;
3
4class Foo : public Thread
5 {
6 void run() { exit(); };
7 };
8
9int main()
10 {
11 Foo *f = new Foo();
12 f->start();
13
14 // Endless!? why?
15 do {
16 Thread::sleep( 1000 );
17 }
18 while( f->isRunning() );
19 }
20