nen
2011-12-24 15:54:13
Are we able to use multi threading in our scripts? I''m trying to convert myself from Java here….
2011-12-24 15:54:13
2011-12-24 16:01:10
2011-12-24 16:09:09
2011-12-24 16:36:08
#include <windows.h>
#include <stdio.h>
static DWORD WINAPI ThreadProc(void* Function)
{
while(true)
{
Function;
Sleep(1000);
}
return 0;
}
__declspec( dllexport ) int WINAPI CreateThread()
{
CreateThread(0, 0, ThreadProc, 0, 0, 0);
return 0;
}
2011-12-24 22:43:11
2011-12-25 01:33:33
2011-12-25 01:37:10