task_p.h revision ca894e53b544de8df0084f2d9d948770a2556ae1
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington/*
ca894e53b544de8df0084f2d9d948770a2556ae1Automatic Updater * Copyright (C) 2004, 2005, 2007, 2009, 2011 Internet Systems Consortium, Inc. ("ISC")
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington * Copyright (C) 2000, 2001 Internet Software Consortium.
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington *
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater * Permission to use, copy, modify, and/or distribute this software for any
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington * purpose with or without fee is hereby granted, provided that the above
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington * copyright notice and this permission notice appear in all copies.
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington *
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * PERFORMANCE OF THIS SOFTWARE.
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington */
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington
ca894e53b544de8df0084f2d9d948770a2556ae1Automatic Updater/* $Id: task_p.h,v 1.15 2011/09/02 23:46:32 tbox Exp $ */
0c4887513bbf71b7d3c99fe9d88c3583cda16febBrian Wellington
3be0a4382d6b0e9f9ecf2fa1f2e9154087f3a175Brian Wellington#ifndef ISC_TASK_P_H
3be0a4382d6b0e9f9ecf2fa1f2e9154087f3a175Brian Wellington#define ISC_TASK_P_H
3be0a4382d6b0e9f9ecf2fa1f2e9154087f3a175Brian Wellington
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein/*! \file */
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt#if defined(BIND9) && defined(ISC_PLATFORM_USETHREADS)
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Huntvoid
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Huntisc__taskmgr_pause(isc_taskmgr_t *taskmgr);
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Huntvoid
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Huntisc__taskmgr_resume(isc_taskmgr_t *taskmgr);
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt#else
5a842a6fc32d4e954c52fa20ab467e101a354828Brian Wellingtonisc_boolean_t
307d2084502eddc7ce921e5ce439aec3531d90e0Tatuya JINMEI 神明達哉isc__taskmgr_ready(isc_taskmgr_t *taskmgr);
5a842a6fc32d4e954c52fa20ab467e101a354828Brian Wellington
3be0a4382d6b0e9f9ecf2fa1f2e9154087f3a175Brian Wellingtonisc_result_t
307d2084502eddc7ce921e5ce439aec3531d90e0Tatuya JINMEI 神明達哉isc__taskmgr_dispatch(isc_taskmgr_t *taskmgr);
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt#endif /* !BIND9 || !ISC_PLATFORM_USETHREADS */
3be0a4382d6b0e9f9ecf2fa1f2e9154087f3a175Brian Wellington
3be0a4382d6b0e9f9ecf2fa1f2e9154087f3a175Brian Wellington#endif /* ISC_TASK_P_H */