Home » Community » Newbie corner » Simple Thread (simple thread example.)
Simple Thread [message #55023] |
Mon, 05 October 2020 16:16  |
|
Hi,
i try to create a simple thread in my application, this is a part of the code:
Processus::Processus() {}
Processus::~Processus() {}
void Processus::Start( String parametres )
{
Thread().Run(THISBACK1(Boucle,parametres));
while(Thread().GetCount());
}
void Processus::Boucle( String parametres )
{
for (int i = 0; i < 10; ++i)
{
std::cout << i << ",";
}
}
I have error:
F:\upp/uppsrc/Core/Callback.h (110): error: 'CLASSNAME' has not been declared
Can you help me ?
|
|
|
Goto Forum:
Current Time: Sat Apr 26 08:55:55 CEST 2025
Total time taken to generate the page: 0.01129 seconds
|