* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
* 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 https://mozilla.org/MPL/2.0/.
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
#define ISC_MUTEXBLOCK_H 1
/*! \file isc/mutexblock.h */
isc_mutexblock_init(isc_mutex_t *block, unsigned int count);
* Initialize a block of locks. If an error occurs all initialized locks
* will be destroyed, if possible.
*\li Any code isc_mutex_init() can return is a valid return for this
isc_mutexblock_destroy(isc_mutex_t *block, unsigned int count);
* Destroy a block of locks.
*\li Each lock in the block be initialized via isc_mutex_init() or
* the whole block was initialized via isc_mutex_initblock().
*\li Any code isc_mutex_init() can return is a valid return for this
#endif /* ISC_MUTEXBLOCK_H */