"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/isc/nothreads/include/isc/thread.h" (7 Sep 2020, 961 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "thread.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 
   13 #ifndef ISC_THREAD_H
   14 #define ISC_THREAD_H 1
   15 
   16 #include <isc/lang.h>
   17 #include <isc/result.h>
   18 
   19 ISC_LANG_BEGINDECLS
   20 
   21 /* Placeholder types (they are not accessed) */
   22 
   23 typedef void * isc_thread_t;
   24 typedef void * isc_threadresult_t;
   25 typedef void * isc_threadarg_t;
   26 typedef void * isc_threadfunc_t;
   27 typedef void * isc_thread_key_t;
   28 
   29 void
   30 isc_thread_setconcurrency(unsigned int level);
   31 
   32 void
   33 isc_thread_setname(isc_thread_t thread, const char *name);
   34 
   35 #define isc_thread_self() ((unsigned long)0)
   36 #define isc_thread_yield() ((void)0)
   37 
   38 ISC_LANG_ENDDECLS
   39 
   40 #endif /* ISC_THREAD_H */