1*eabc0478Schristos /* $NetBSD: task_p.h,v 1.2 2024/08/18 20:47:14 christos Exp $ */ 2897be3a4Schristos 3897be3a4Schristos /* 4897be3a4Schristos * Copyright (C) 2004, 2005, 2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") 5897be3a4Schristos * Copyright (C) 2000, 2001 Internet Software Consortium. 6897be3a4Schristos * 7897be3a4Schristos * Permission to use, copy, modify, and/or distribute this software for any 8897be3a4Schristos * purpose with or without fee is hereby granted, provided that the above 9897be3a4Schristos * copyright notice and this permission notice appear in all copies. 10897be3a4Schristos * 11897be3a4Schristos * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 12897be3a4Schristos * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 13897be3a4Schristos * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 14897be3a4Schristos * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 15897be3a4Schristos * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 16897be3a4Schristos * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17897be3a4Schristos * PERFORMANCE OF THIS SOFTWARE. 18897be3a4Schristos */ 19897be3a4Schristos 20897be3a4Schristos /* Id */ 21897be3a4Schristos 22897be3a4Schristos #ifndef ISC_TASK_P_H 23897be3a4Schristos #define ISC_TASK_P_H 24897be3a4Schristos 25897be3a4Schristos /*! \file */ 26897be3a4Schristos 27897be3a4Schristos #if defined(BIND9) && defined(ISC_PLATFORM_USETHREADS) 28897be3a4Schristos void 29897be3a4Schristos isc__taskmgr_pause(isc_taskmgr_t *taskmgr); 30897be3a4Schristos 31897be3a4Schristos void 32897be3a4Schristos isc__taskmgr_resume(isc_taskmgr_t *taskmgr); 33897be3a4Schristos #else 34897be3a4Schristos isc_boolean_t 35897be3a4Schristos isc__taskmgr_ready(isc_taskmgr_t *taskmgr); 36897be3a4Schristos 37897be3a4Schristos isc_result_t 38897be3a4Schristos isc__taskmgr_dispatch(isc_taskmgr_t *taskmgr); 39897be3a4Schristos #endif /* !BIND9 || !ISC_PLATFORM_USETHREADS */ 40897be3a4Schristos 41897be3a4Schristos #endif /* ISC_TASK_P_H */ 42