|
|
The way I'm reading it, based on my work with Arduino, is that your [if] flow
control directive is malformed and so the compiler if waiting to wrap that up
before hitting the end of the function.
void * twait(int secs)
{
/// do something here
}
newthread launcher from a dll - follow up.
int timer1(HWND mWnd, int secs, void * func)
{
pthread_t thread; int err;
err = pthread_create(&thread, NULL, func, (void *)secs);
if (err) return 1;
return 0;
}
change the above to:
if (err) {return 1;
[else] return 0;
}
and see what happens.
Of course, I could be totally wrong.
I also think that if at the top of your code you do
int secs = 0;
then you only need to use secs not int secs in the rest of your code.
Post a reply to this message
|
|