0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 1999-2001, 2004, 2005, 2007, 2011, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
31c0e4ba054cfc36472a6f1aa7924be18833045eDavid Lawrenceisc_mutexblock_init(isc_mutex_t *block, unsigned int count) {
9c91aa26411a449f26cf5e0b7fb588f8a71977a8Michael Graff unsigned int i;
f1b68725503ff3e46001eee5a1751e29a43a09d1Andreas Gustafsson for (i = 0; i < count; i++) {
3975f627fe9c0d3aa02ed135070e3253357daad9Mark Andrews while (i > 0U) {
31c0e4ba054cfc36472a6f1aa7924be18833045eDavid Lawrenceisc_mutexblock_destroy(isc_mutex_t *block, unsigned int count) {
9c91aa26411a449f26cf5e0b7fb588f8a71977a8Michael Graff unsigned int i;
f1b68725503ff3e46001eee5a1751e29a43a09d1Andreas Gustafsson for (i = 0; i < count; i++) {