1/* BEGIN LICENSE BLOCK 2 * Version: CMPL 1.1 3 * 4 * The contents of this file are subject to the Cisco-style Mozilla Public 5 * License Version 1.1 (the "License"); you may not use this file except 6 * in compliance with the License. You may obtain a copy of the License 7 * at www.eclipse-clp.org/license. 8 * 9 * Software distributed under the License is distributed on an "AS IS" 10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 11 * the License for the specific language governing rights and limitations 12 * under the License. 13 * 14 * The Original Code is The ECLiPSe Constraint Logic Programming System. 15 * The Initial Developer of the Original Code is Cisco Systems, Inc. 16 * Portions created by the Initial Developer are 17 * Copyright (C) 1994-2006 Cisco Systems, Inc. All Rights Reserved. 18 * 19 * Contributor(s): 20 * 21 * END LICENSE BLOCK */ 22 23/********************************************************************** 24** System: Parallel Eclipse 25** File: wm_types.h 26** Author: Shyam Mudambi 27** Description: Common header file for worker manager files 28** 29**********************************************************************/ 30 31/* WORKER STATUS */ 32#define NOT_READY 0 33#define AWAKE 1 34#define SLEEPING 2 35 36#define MAX_MACHINES 128 37 38typedef struct worker_struct * worker_ptr; 39struct worker_struct { 40 int index; 41 int pid; 42 int first; /* whether this was the first worker created */ 43 nsrv_name_t bport_name; 44 bport_id_t bport_id; 45 aport_id_t wm_aport_id; 46 aport_id_t halt1_aport_id; 47 aport_id_t halt2_aport_id; 48 int status; 49 struct worker_stat_ext start_wstat, cur_wstat; 50 worker_ptr next; 51} ; 52 53typedef struct worker_struct worker_t; 54 55typedef struct { 56 int num_workers; 57 int num_awake; 58 int auto_start; 59 sstring hostname; 60 sstring exec_file; 61 sstring heap_map_file; 62 worker_ptr list; 63} machine_t; 64 65typedef struct { 66 int num_machines; 67 int total_workers; 68 int next_id; 69 machine_t machines[MAX_MACHINES]; 70} hdr_mc_list_t; 71 72