1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
class Game
{
HANDLE hcol[7];
unsigned int WINAPI find(void *);
int threadhandler(square temp[6][7], bool turn, int level, int &minmax, int lex, int derk);
...
};
int Game::threadhandler(square temp[6][7], bool turn, int level, int &minmax, int lex, int derk)
{
hcol[0] = (HANDLE)_beginthreadex (NULL, 0, &Game::find, efa, 0, NULL);
...
}
unsigned int WINAPI Game::find(void *arg)
{
...
}
|