thread.h 714 Bytes
Newer Older
1
/*
2
 * Copyright (C) 2000, 2001, 2004, 2007, 2013, 2016  Internet Systems Consortium, Inc. ("ISC")
3
 *
4 5 6
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 8
 */

Automatic Updater's avatar
Automatic Updater committed
9
/* $Id: thread.h,v 1.6 2007/06/19 23:47:18 tbox Exp $ */
10 11 12 13 14 15 16 17 18 19 20 21

#ifndef ISC_THREAD_H
#define ISC_THREAD_H 1

#include <isc/lang.h>
#include <isc/result.h>

ISC_LANG_BEGINDECLS

void
isc_thread_setconcurrency(unsigned int level);

22 23 24
void
isc_thread_setname(isc_thread_t, const char *);

25
#define isc_thread_self() ((unsigned long)0)
26
#define isc_thread_yield() ((void)0)
27 28 29 30

ISC_LANG_ENDDECLS

#endif /* ISC_THREAD_H */