ultimatepp/autotest/TestExitThread/TestExitThread.cpp
cxl 5edae0e110 .reorganizing
git-svn-id: svn://ultimatepp.org/upp/trunk@9759 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-01 20:21:16 +00:00

18 lines
238 B
C++

#include <Core/Core.h>
using namespace Upp;
void SomeThread()
{
String h('x', 200);
Thread::Exit();
ASSERT(0);
}
CONSOLE_APP_MAIN
{
Thread t;
t.Start([] { SomeThread(); });
t.Wait();
LOG("------------- OK");
}