task_p.h revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater/*
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater * Copyright (C) 2000, 2001, 2004, 2005, 2007, 2009, 2011-2013, 2016 Internet Systems Consortium, Inc. ("ISC")
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater *
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater * This Source Code Form is subject to the terms of the Mozilla Public
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater * License, v. 2.0. If a copy of the MPL was not distributed with this
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater * file, You can obtain one at http://mozilla.org/MPL/2.0/.
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater */
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater/* $Id$ */
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater#ifndef ISC_TASK_P_H
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater#define ISC_TASK_P_H
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater/*! \file */
c1ee8bb4ba3e9ab1463403ed685729631de406b1Mark Andrews
b8a9a7bef2c3060204c68aef4f3fce04afc1aaeeAutomatic Updater#if defined(ISC_PLATFORM_USETHREADS)
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsvoid
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsisc__taskmgr_pause(isc_taskmgr_t *taskmgr);
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsvoid
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsisc__taskmgr_resume(isc_taskmgr_t *taskmgr);
e334405421979688f2d838805ac67ee47bd62976Mark Andrews#else
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsisc_boolean_t
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsisc__taskmgr_ready(isc_taskmgr_t *taskmgr);
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsisc_result_t
e334405421979688f2d838805ac67ee47bd62976Mark Andrewsisc__taskmgr_dispatch(isc_taskmgr_t *taskmgr);
e334405421979688f2d838805ac67ee47bd62976Mark Andrews#endif /* !ISC_PLATFORM_USETHREADS */
e334405421979688f2d838805ac67ee47bd62976Mark Andrews
e334405421979688f2d838805ac67ee47bd62976Mark Andrews#endif /* ISC_TASK_P_H */
e334405421979688f2d838805ac67ee47bd62976Mark Andrews