Lines Matching defs:WorkList

2122 		/* Has the WorkList reached the limit? */
2450 ** full -- (optional) to be set 'true' if WorkList is full
2452 ** messages in this queue not added to WorkList
2457 ** the number of requests in WorkList however).
2460 ** prepares available work into WorkList
2471 static WORK *WorkList = NULL; /* list of unsort work */
2472 static int WorkListSize = 0; /* current max size of WorkList */
2473 static int WorkListCount = 0; /* # of work items in WorkList */
2623 "WorkList for %s maxed out at %d",
2637 w = &WorkList[wn];
2919 (WorkList == NULL && wn > 0);
2928 ** First the old WorkQ is cleared away. Then the WorkList is sorted
2931 ** WorkList to WorkQ. The lower count of 'max' or MaxListCount items
2941 ** WorkQ gets released and filled with new work. WorkList
2969 if (WorkList == NULL || wc <= 0)
2973 ** The sort now takes place using all of the items in WorkList.
2986 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf1);
2996 if (!WorkList[i].w_lock)
3001 w = &WorkList[i];
3004 if (WorkList[i].w_host == NULL &&
3006 WorkList[i].w_lock = true;
3007 else if (WorkList[i].w_host != NULL &&
3009 sm_strcasecmp(WorkList[i].w_host,
3011 WorkList[i].w_lock = true;
3022 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf2);
3030 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf3);
3038 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf4);
3051 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf5);
3060 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf6);
3070 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf7);
3079 qsort((char *) WorkList, wc, sizeof(*WorkList), workcmpf0);
3097 w->w_qgrp = WorkList[i].w_qgrp;
3098 w->w_qdir = WorkList[i].w_qdir;
3099 w->w_name = WorkList[i].w_name;
3100 w->w_host = WorkList[i].w_host;
3101 w->w_lock = WorkList[i].w_lock;
3102 w->w_tooyoung = WorkList[i].w_tooyoung;
3103 w->w_pri = WorkList[i].w_pri;
3104 w->w_ctime = WorkList[i].w_ctime;
3105 w->w_mtime = WorkList[i].w_mtime;
3113 sm_free(WorkList[i].w_name);
3114 if (WorkList[i].w_host != NULL)
3115 sm_free(WorkList[i].w_host);
3118 if (WorkList != NULL)
3119 sm_free(WorkList); /* XXX */
3120 WorkList = NULL;
3150 ** Adds another QUEUESEGSIZE entries to WorkList if possible.
3162 if (WorkList == NULL)
3164 WorkList = (WORK *) xalloc((sizeof(*WorkList)) *
3171 WORK *newlist = (WORK *) sm_realloc((char *) WorkList,
3177 WorkList = newlist;
3181 "grew WorkList for %s to %d",
3189 "FAILED to grow WorkList for %s to %d",
8894 e.e_id = WorkList[i].w_name + 2;
8912 if (WorkList != NULL)
8913 sm_free(WorkList); /* XXX */
8914 WorkList = NULL;