Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/bind9/isc
File: thread.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef ISC_THREAD_H
[12] Fix | Delete
#define ISC_THREAD_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file */
[15] Fix | Delete
[16] Fix | Delete
#include <pthread.h>
[17] Fix | Delete
[18] Fix | Delete
#if defined(HAVE_PTHREAD_NP_H)
[19] Fix | Delete
#include <pthread_np.h>
[20] Fix | Delete
#endif
[21] Fix | Delete
[22] Fix | Delete
#include <isc/lang.h>
[23] Fix | Delete
#include <isc/result.h>
[24] Fix | Delete
[25] Fix | Delete
ISC_LANG_BEGINDECLS
[26] Fix | Delete
[27] Fix | Delete
typedef pthread_t isc_thread_t;
[28] Fix | Delete
typedef void * isc_threadresult_t;
[29] Fix | Delete
typedef void * isc_threadarg_t;
[30] Fix | Delete
typedef isc_threadresult_t (*isc_threadfunc_t)(isc_threadarg_t);
[31] Fix | Delete
typedef pthread_key_t isc_thread_key_t;
[32] Fix | Delete
[33] Fix | Delete
isc_result_t
[34] Fix | Delete
isc_thread_create(isc_threadfunc_t, isc_threadarg_t, isc_thread_t *);
[35] Fix | Delete
[36] Fix | Delete
void
[37] Fix | Delete
isc_thread_setconcurrency(unsigned int level);
[38] Fix | Delete
[39] Fix | Delete
void
[40] Fix | Delete
isc_thread_yield(void);
[41] Fix | Delete
[42] Fix | Delete
void
[43] Fix | Delete
isc_thread_setname(isc_thread_t thread, const char *name);
[44] Fix | Delete
[45] Fix | Delete
/* XXX We could do fancier error handling... */
[46] Fix | Delete
[47] Fix | Delete
#define isc_thread_join(t, rp) \
[48] Fix | Delete
((pthread_join((t), (rp)) == 0) ? \
[49] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[50] Fix | Delete
[51] Fix | Delete
#define isc_thread_self \
[52] Fix | Delete
(unsigned long)pthread_self
[53] Fix | Delete
[54] Fix | Delete
#define isc_thread_key_create pthread_key_create
[55] Fix | Delete
#define isc_thread_key_getspecific pthread_getspecific
[56] Fix | Delete
#define isc_thread_key_setspecific pthread_setspecific
[57] Fix | Delete
#define isc_thread_key_delete pthread_key_delete
[58] Fix | Delete
[59] Fix | Delete
ISC_LANG_ENDDECLS
[60] Fix | Delete
[61] Fix | Delete
#endif /* ISC_THREAD_H */
[62] Fix | Delete
[63] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function