mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dc9f782ba5
commit
4a1c627474
2823 changed files with 619073 additions and 0 deletions
39
uppdev/StlHeap/StlHeap.cpp
Normal file
39
uppdev/StlHeap/StlHeap.cpp
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue