task_p.h revision 280849
1235267Sgabor/* 2235267Sgabor * Copyright (C) 2004, 2005, 2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") 3251245Sgabor * Copyright (C) 2000, 2001 Internet Software Consortium. 4235267Sgabor * 5235267Sgabor * Permission to use, copy, modify, and/or distribute this software for any 6235267Sgabor * purpose with or without fee is hereby granted, provided that the above 7235267Sgabor * copyright notice and this permission notice appear in all copies. 8235267Sgabor * 9235267Sgabor * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10235267Sgabor * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11235267Sgabor * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12235267Sgabor * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13235267Sgabor * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14235267Sgabor * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15235267Sgabor * PERFORMANCE OF THIS SOFTWARE. 16235267Sgabor */ 17235267Sgabor 18235267Sgabor/* $Id$ */ 19235267Sgabor 20235267Sgabor#ifndef ISC_TASK_P_H 21235267Sgabor#define ISC_TASK_P_H 22235267Sgabor 23235267Sgabor/*! \file */ 24235267Sgabor 25235267Sgabor#if defined(BIND9) && defined(ISC_PLATFORM_USETHREADS) 26235267Sgaborvoid 27235267Sgaborisc__taskmgr_pause(isc_taskmgr_t *taskmgr); 28235267Sgabor 29235267Sgaborvoid 30235267Sgaborisc__taskmgr_resume(isc_taskmgr_t *taskmgr); 31235267Sgabor#else 32235267Sgaborisc_boolean_t 33235267Sgaborisc__taskmgr_ready(isc_taskmgr_t *taskmgr); 34235267Sgabor 35235267Sgaborisc_result_t 36235267Sgaborisc__taskmgr_dispatch(isc_taskmgr_t *taskmgr); 37235267Sgabor#endif /* !BIND9 || !ISC_PLATFORM_USETHREADS */ 38235267Sgabor 39235267Sgabor#endif /* ISC_TASK_P_H */ 40235267Sgabor