Hi,
So far I've adventured the eC world and it is so wonderful.I want to start learning networking and threading in eC.For networking,although there is no tutorial up to now,there is a lot of examples in the SDK.It is a bit hard to learn ,but I would like to learn from the code a piece by a piece.Anyway guidlines and/or introductions are much appreciated.
So any brief tutorial/introduction for threading programing in eC?A starter step by step example should do great help as well.
Thanks.
Easy Networing & Threading Programming tutorial in eC?
Re: Easy Networing & Threading Programming tutorial in eC?
Here's a small sample from the wiki on threading:
Of particular interest to you might be the threads/threadsAndListBoxes sample, which teaches threading and networking together. I will move the rest of the topic to the networking forums.
Code: Select all
import "ecere"
Mutex mutex { };
Semaphore semaphore { };
MyThread thread { };
class MyThread : Thread
{
uint Main()
{
for(;;)
{
mutex.Wait();
semaphore.Release();
mutex.Release();
}
return 0;
}
}
void Test()
{
thread.Create();
}