1 1.1 christos /* $NetBSD: task_p.h,v 1.2 2024/08/18 20:47:14 christos Exp $ */ 2 1.1 christos 3 1.1 christos /* 4 1.1 christos * Copyright (C) 2004, 2005, 2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") 5 1.1 christos * Copyright (C) 2000, 2001 Internet Software Consortium. 6 1.1 christos * 7 1.1 christos * Permission to use, copy, modify, and/or distribute this software for any 8 1.1 christos * purpose with or without fee is hereby granted, provided that the above 9 1.1 christos * copyright notice and this permission notice appear in all copies. 10 1.1 christos * 11 1.1 christos * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 12 1.1 christos * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 13 1.1 christos * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 14 1.1 christos * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 15 1.1 christos * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 16 1.1 christos * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 1.1 christos * PERFORMANCE OF THIS SOFTWARE. 18 1.1 christos */ 19 1.1 christos 20 1.1 christos /* Id */ 21 1.1 christos 22 1.1 christos #ifndef ISC_TASK_P_H 23 1.1 christos #define ISC_TASK_P_H 24 1.1 christos 25 1.1 christos /*! \file */ 26 1.1 christos 27 1.1 christos #if defined(BIND9) && defined(ISC_PLATFORM_USETHREADS) 28 1.1 christos void 29 1.1 christos isc__taskmgr_pause(isc_taskmgr_t *taskmgr); 30 1.1 christos 31 1.1 christos void 32 1.1 christos isc__taskmgr_resume(isc_taskmgr_t *taskmgr); 33 1.1 christos #else 34 1.1 christos isc_boolean_t 35 1.1 christos isc__taskmgr_ready(isc_taskmgr_t *taskmgr); 36 1.1 christos 37 1.1 christos isc_result_t 38 1.1 christos isc__taskmgr_dispatch(isc_taskmgr_t *taskmgr); 39 1.1 christos #endif /* !BIND9 || !ISC_PLATFORM_USETHREADS */ 40 1.1 christos 41 1.1 christos #endif /* ISC_TASK_P_H */ 42