Quote:
Originally Posted by vadkutya
nothing easier than that  . seriously, it is impossible just to convert code by looking at a snippet. copying the source won't do either because if the code does have windows api system calls you need to translate them into proper POSIX (i.e. linux system calls). we can't do your work for you, buddy, we might assist but you have to figure it out for your self.
btw: what do you need it for?
vadkutya
|
enum CleanType{
NOCLEAN, FREPORTS, FDRILLDROWNS, PREPORTS
};
typedef struct _ThrdHandle
{
CleanType cType;
}ThrdHandle;
void *DelFolderThrd(void* element)
{
CleanType clnType = NOCLEAN;
ThrdHandle * handler = (ThrdHandle*)element;
if(element)
clnType = handler->cType;
}
void CleanupOlderFiles(bool bFirstTime = false)
{
unsigned delFDrillthreadId;
ThrdHandle * stmsg = new ThrdHandle;
memset(stmsg,0, sizeof(ThrdHandle));
pthread_t hThread;
stmsg->cType = FDRILLDOWNS;
pthread_create(&hThread,NULL,DelFolderThrd,(void *)stmsg);
}