Move all enum types definitions to types.h

Cleanup headers while there.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-02-23 21:27:22 +01:00
parent 95212222c7
commit 0fcda095df
28 changed files with 319 additions and 608 deletions

View File

@@ -17,15 +17,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(THREAD_H_INCLUDED)
#define THREAD_H_INCLUDED
////
//// Includes
////
#include <cstring>
#include "lock.h"
@@ -33,19 +27,9 @@
#include "position.h"
#include "search.h"
////
//// Constants and variables
////
const int MAX_THREADS = 16;
const int MAX_ACTIVE_SPLIT_POINTS = 8;
////
//// Types
////
struct SplitPoint {
// Const data after splitPoint has been setup
@@ -73,7 +57,6 @@ struct SplitPoint {
};
// ThreadState type is used to represent thread's current state
enum ThreadState
{
THREAD_INITIALIZING, // thread is initializing itself
@@ -91,5 +74,4 @@ struct Thread {
SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS];
};
#endif // !defined(THREAD_H_INCLUDED)