t_tasks.c revision ec5347e2c775f027573ce5648b910361aa926c01
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence * Copyright (C) 1998-2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
1633838b8255282d10af15c5c84cee5a51466712Bob Halley * copyright notice and this permission notice appear in all copies.
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9a4ce0c25809073f31226faa6ed94c70474cf363Bob Halley * PERFORMANCE OF THIS SOFTWARE.
c403d3f7d6cb17406e9be03a330ed5cf91619abcDavid Lawrence/* $Id: t_tasks.c,v 1.39 2007/06/18 23:47:32 tbox Exp $ */
7aacbd685b2107670e4179689abec9cb82d972abBob Halleyt1_callback(isc_task_t *task, isc_event_t *event) {
t_tasks1(void) {
unsigned int workers;
if (p != NULL)
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_FAIL);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
sizeof(*event));
return(T_UNRESOLVED);
return(T_PASS);
t1(void) {
int result;
static int T2_done;
static int T2_nprobs;
static int T2_nfails;
static int T2_ntasks;
++T2_nprobs;
++T2_nprobs;
++T2_nprobs;
++T2_ntasks;
++T2_nfails;
(void *)task);
++T2_nfails;
t_tasks2(void) {
int result;
unsigned int workers;
T2_done = 0;
T2_nprobs = 0;
T2_nfails = 0;
T2_ntasks = 0;
if (p != NULL)
return(T_UNRESOLVED);
if (p != NULL)
if (ntasks == 0U) {
(unsigned long)ntasks);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_FAIL);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
while (T2_done == 0) {
return(T_UNRESOLVED);
else if (T2_nfails != 0)
return(result);
t2(void) {
if (threaded)
static int T3_flag;
static int T3_nevents;
static int T3_nsdevents;
static int T3_nfails;
static int T3_nprobs;
++T3_nprobs;
++T3_nsdevents;
++T3_nfails;
++T3_nprobs;
if (T3_nsdevents == 0) {
++T3_nsdevents;
++T3_nfails;
++T3_nprobs;
++T3_nprobs;
++T3_nevents;
t_tasks3(void) {
int cnt;
int result;
unsigned int workers;
T3_flag = 0;
T3_nevents = 0;
T3_nsdevents = 0;
T3_nfails = 0;
T3_nprobs = 0;
if (p != NULL)
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
++T3_nprobs;
++T3_nprobs;
++T3_nfails;
++T3_nfails;
if (T3_nfails != 0)
return(result);
t3(void) {
if (threaded)
static int T4_flag;
static int T4_nprobs;
static int T4_nfails;
++T4_nprobs;
++T4_nprobs;
t_tasks4(void) {
int result;
unsigned int workers;
T4_nprobs = 0;
T4_nfails = 0;
T4_flag = 0;
if (p != NULL)
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
++T4_nfails;
++T4_nprobs;
++T4_nprobs;
if (T4_nfails != 0)
return(result);
static const char *a4 =
t4(void) {
if (threaded)
static int T7_nprobs;
static int T7_eflag;
static int T7_sdflag;
static int T7_nfails;
++T7_eflag;
++T7_nprobs;
++T7_sdflag;
++T7_nprobs;
++T7_nprobs;
t_tasks7(void) {
int result;
unsigned int workers;
T7_nprobs = 0;
T7_nfails = 0;
T7_sdflag = 0;
T7_eflag = 0;
if (p != NULL)
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_FAIL);
return(T_FAIL);
return(T_UNRESOLVED);
while (T7_sdflag == 0) {
return(T_UNRESOLVED);
return(T_FAIL);
++T7_nprobs;
if (T7_eflag == 0)
++T7_nfails;
if (T7_nfails != 0)
return(result);
t7(void) {
if (threaded)
static int T10_nprobs;
static int T10_nfails;
static int T10_startflag;
static int T10_shutdownflag;
static int T10_eventcnt;
static void *T10_purge_sender;
static void *T10_purge_tag;
static int T10_testrange;
++T10_nprobs;
while (T10_startflag == 0) {
++T10_nprobs;
++T10_nprobs;
int sender_match;
int type_match;
int tag_match;
sender_match = 0;
type_match = 0;
tag_match = 0;
if (T_debug) {
if (T10_testrange == 0) {
++T10_eventcnt;
++T10_eventcnt;
++T10_nprobs;
++T10_nprobs;
++T10_nprobs;
unsigned int workers;
int sender_cnt;
int type_cnt;
int tag_cnt;
int event_cnt;
int cnt;
int nevents;
T10_startflag = 0;
T10_shutdownflag = 0;
T10_eventcnt = 0;
if (p != NULL)
++*nprobs;
++*nprobs;
++*nprobs;
++*nprobs;
++*nprobs;
++*nprobs;
event_cnt = 0;
++event_cnt;
if (T_debug)
if (testrange == 0) {
++*nfails;
} else if (T_debug)
++*nfails;
} else if (T_debug)
++*nprobs;
++*nprobs;
while (T10_shutdownflag == 0) {
++*nprobs;
++*nfails;
++*nprobs;
if (T_debug)
++*nfails;
t_tasks10(void) {
int result;
T10_nprobs = 0;
T10_nfails = 0;
&T10_nprobs, 0);
&T10_nprobs, 0);
&T10_nprobs, 0);
&T10_nprobs, 0);
&T10_nprobs, 0);
else if (T10_nfails != 0)
return(result);
static const char *a10 =
t10(void) {
if (threaded)
static int T11_nprobs;
static int T11_nfails;
static int T11_startflag;
static int T11_shutdownflag;
static int T11_eventcnt;
++T11_nprobs;
while (T11_startflag == 0) {
++T11_nprobs;
++T11_nprobs;
++T11_eventcnt;
++T11_nprobs;
++T11_nprobs;
++T11_nprobs;
unsigned int workers;
int result;
T11_startflag = 0;
T11_shutdownflag = 0;
T11_eventcnt = 0;
if (p != NULL)
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_UNRESOLVED);
if (purgable)
++T11_nfails;
++T11_nprobs;
++T11_nprobs;
while (T11_shutdownflag == 0) {
++T11_nprobs;
++T11_nprobs;
++T11_nprobs;
++T11_nfails;
else if (T11_nfails)
return(result);
static const char *a11 =
t11(void) {
if (threaded)
static const char *a12 =
t_tasks12(void) {
return(t_tasks11(0));
t12(void) {
if (threaded)
static int T13_nfails;
static int T13_nprobs;
static const char *a13 =
t_tasks13(void) {
int result;
T13_nfails = 0;
T13_nprobs = 0;
else if (T13_nfails)
return (result);
t13(void) {
if (threaded)
int t14_error = 0;
int t14_done = 0;
int spin(int n);
for (i = 0; i < T14_NTASKS; i++) {
if (t14_active[i])
t14_error++;
if (t14_done) {
int spin(int n) {
t_tasks14(void) {
unsigned int workers;
for (i = 0; i < T14_NTASKS; i++)
if (p != NULL)
return(T_UNRESOLVED);
return(T_UNRESOLVED);
return(T_FAIL);
for (i = 0; i < T14_NTASKS; i++) {
return(T_FAIL);
if (v == NULL) {
return(T_FAIL);
v, sizeof(*event));
return(T_UNRESOLVED);
for (i = 0; i < T14_NTASKS; i++) {
if (t14_error)
return(T_FAIL);
return(T_PASS);
t14(void) {
int result;