Adding uppdev....

git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-08-15 08:36:24 +00:00
parent dc9f782ba5
commit 4a1c627474
2823 changed files with 619073 additions and 0 deletions

View file

@ -0,0 +1,39 @@
#include <Core/Core.h>
#include <iostream>
using namespace Upp;
class test
{
public:
typedef test CLASSNAME;
void loop();
void start();
};
void test::start()
{
Thread().Start(THISBACK(loop));
}
void test::loop()
{
std::string str;
while(true)
{
Thread().Sleep(200);
str.append("test");
std::cout << "loop" << std::endl;
}
}
CONSOLE_APP_MAIN
{
(new test)->start();
while(true)
{
Thread().Sleep(500);
std::cout << "Wait..." << std::endl;
}
}