Is it possible to invoke a thread after creating it suspended and will it later react to "suspend thread" even though i didn't use "Resumethread" to get it going.
Posted on 2001-09-24 17:02:14 by titan
I'm not sure I understand exactly what you mean, but...

Invoke does nothing but calling a label (and handling parms and
stack cleanup if they're necessary). This happens *in the current
thread*, of course.

A thing to keep in mind... for each SuspendThread call, you increase
the "suspend count". So if you call SuspendThread two times on a
thread, you must call ResumeThread twice.
Posted on 2001-09-24 18:25:27 by f0dder
If you create the thread in suspended state, you can use ResumeThread to "stir" it into action. And during the life of the thread, you can call SuspendThread/ResumeThread to pause/resume the thread execution whenever you feel like.
Posted on 2001-09-25 00:09:47 by Iczelion
Thats starting to sound like a finite state machine (coding wise that is).

Posted on 2001-09-25 00:14:25 by NaN