Displaying 3 results from an estimated 3 matches for "lpthread_start_routine".
2019 Apr 26
2
[ASan][Windows] Interceptor function type not compatible with intercepted function
...function.
This seems to be the case for the following 2 functions:
CreateThread “no conversion”:
From: 'DWORD (__cdecl *)(void * , __sanitizer::uptr, DWORD (__cdecl *)(void *), void *, DWORD, void * )'
To : 'HANDLE (__cdecl *)(LPSECURITY_ATTRIBUTES, SIZE_T , LPTHREAD_START_ROUTINE , LPVOID, DWORD, LPDWORD)'
__C_specific_handler:
From: 'int (__cdecl *)(void * , void *, void * , void * )'
To: 'EXCEPTION_DISPOSITION (__cdecl *)(_EXCEPTION_RECORD *, void *, _CONTEXT *, _DISPATCHER_CONTEXT *)'
Can someone o...
2009 Jan 07
3
[LLVMdev] LLVM optmization
...stime/3600,(systime%3600)/60,(systime%3600)%60,milisectime);
return (const char*) buffer;
};
//fim cronometro
int main(int a, char **b)
{
int i;
DWORD iThreadId;
HANDLE mainThread[num_th];
tfim = 0;
tini = GetTickCount();
for(i=0; i< num_th;i++)
mainThread[i] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)thread_call, (LPVOID)TESTE, 0, (DWORD *)&iThreadId);
//WaitForMultipleObjects( num_th, (const HANDLE* )mainThread, TRUE, INFINITE);
for( i=0; i < num_th; i++)
{
WaitForSingleObject( mainThread[i], INFINITE );
CloseHandle(mainThread[i]);
}
tfim = GetTickCount();
printf...
2009 Jan 08
0
[LLVMdev] LLVMdev Digest, Vol 55, Issue 16
...; > DWORD iThreadId;
> > HANDLE mainThread[num_th];
> > tfim = 0;
> > tini = GetTickCount();
>
> You're starting your count ...
>
> > for(i=0; i< num_th;i++)
> > mainThread[i] = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)thread_call, (LPVOID)TESTE, 0, (DWORD *)&iThreadId);
> >
> While doing a thread create method (which I don't have on my darwin
> box) that calls "printf". "printf" is I/O bound and makes for a lousy
> performance test.
>
> Nevertheless, I've att...