Any comments, complaints, suggestions? Looking for something even more powerful, perhaps? Maybe the end-all-be-all multithreading library? I've got it! But I would like a little feedback on this one first, please . For the reluctant, I will illustrate example one from the package...
Code:
#include <windows.h> //...for sleep
#include <stdio.h>
#include "QuickThread.h"
void This(void)
{
printf("This ");
}
void Thread(void)
{
printf("Thread ");
}
void Is(void)
{
printf("Is ");
}
void Running(void)
{
printf("Running ");
}
int main(int argc, char *argv[]){
QuickThread thread;
thread.Add(This, Thread, Is, Running, This);
thread.Start();
Sleep(3000); //...let the thread run for three seconds...
thread.Suspend();
Sleep(3000); //...let it sleep...
thread.Resume();
Sleep(3000); //...let it run again for three seconds...
thread.Stop();
return 0;
}
Also, here are the Win32 thread priority ID's to be used with QuickThread::Priority():
THREAD_PRIORITY_IDLE
THREAD_PRIORITY_LOWEST
THREAD_PRIORITY_BELOW_NORMAL
THREAD_PRIORITY_NORMAL
THREAD_PRIORITY_ABOVE_NORMAL
THREAD_PRIORITY_HIGHEST
THREAD_PRIORITY_TIME_CRITICAL