src/ai/ai_threads.h
author rubidium
Fri, 16 Mar 2007 22:00:07 +0000
branchnoai
changeset 9444 fd27df7ca2a0
parent 9441 src/ai/ai.h@03da911c8d5f
child 9724 b39bc69bb2f2
permissions -rw-r--r--
(svn r9260) [NoAI] -Codechange: do the AI threading properly using a mutex and condition signalling.
Note: this is pthread specific code, it needs to be ported to non POSIX platform.
/* $Id$ */

/** @file ai_threads.h declaration of functions for the AI threading system */

#ifndef AI_THREADS_H
#define AI_THREADS_H

class AIController;

void AI_StartPlayer(PlayerID player, AIController *controller);
void AI_SuspendPlayer(PlayerID player, int timeout);
void AI_RunTick(PlayerID player);
void AI_StopPlayer(PlayerID player);

bool AI_GetCallbackResult(PlayerID player);

#endif /* AI_THREADS_H */