Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/bind9/isc
File: condition.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_CONDITION_H
[12] Fix | Delete
#define ISC_CONDITION_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file */
[15] Fix | Delete
[16] Fix | Delete
#include <isc/lang.h>
[17] Fix | Delete
#include <isc/mutex.h>
[18] Fix | Delete
#include <isc/result.h>
[19] Fix | Delete
#include <isc/types.h>
[20] Fix | Delete
[21] Fix | Delete
typedef pthread_cond_t isc_condition_t;
[22] Fix | Delete
[23] Fix | Delete
#define isc_condition_init(cp) \
[24] Fix | Delete
((pthread_cond_init((cp), NULL) == 0) ? \
[25] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[26] Fix | Delete
[27] Fix | Delete
#if ISC_MUTEX_PROFILE
[28] Fix | Delete
#define isc_condition_wait(cp, mp) \
[29] Fix | Delete
((pthread_cond_wait((cp), &((mp)->mutex)) == 0) ? \
[30] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[31] Fix | Delete
#else
[32] Fix | Delete
#define isc_condition_wait(cp, mp) \
[33] Fix | Delete
((pthread_cond_wait((cp), (mp)) == 0) ? \
[34] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[35] Fix | Delete
#endif
[36] Fix | Delete
[37] Fix | Delete
#define isc_condition_signal(cp) \
[38] Fix | Delete
((pthread_cond_signal((cp)) == 0) ? \
[39] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[40] Fix | Delete
[41] Fix | Delete
#define isc_condition_broadcast(cp) \
[42] Fix | Delete
((pthread_cond_broadcast((cp)) == 0) ? \
[43] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[44] Fix | Delete
[45] Fix | Delete
#define isc_condition_destroy(cp) \
[46] Fix | Delete
((pthread_cond_destroy((cp)) == 0) ? \
[47] Fix | Delete
ISC_R_SUCCESS : ISC_R_UNEXPECTED)
[48] Fix | Delete
[49] Fix | Delete
ISC_LANG_BEGINDECLS
[50] Fix | Delete
[51] Fix | Delete
isc_result_t
[52] Fix | Delete
isc_condition_waituntil(isc_condition_t *, isc_mutex_t *, isc_time_t *);
[53] Fix | Delete
[54] Fix | Delete
ISC_LANG_ENDDECLS
[55] Fix | Delete
[56] Fix | Delete
#endif /* ISC_CONDITION_H */
[57] Fix | Delete
[58] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function