/*
* Copyright (C) 2012 - 2015 Nominum, Inc.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose with or without fee is hereby granted,
* provided that the above copyright notice and this permission notice
* appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <pthread.h>
#include <string.h>
#include "log.h"
#ifndef PERF_UTIL_H
if (__n != 0) \
perf_log_fatal("pthread_create failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_join failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_mutex_init failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_mutex_destroy failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_mutex_lock failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_mutex_unlock failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_cond_init failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_cond_signal failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_cond_broadcast failed: %s", \
} while (0)
if (__n != 0) \
perf_log_fatal("pthread_cond_wait failed: %s", \
} while (0)
perf_log_fatal("pthread_cond_timedwait failed: %s", \
} while (0)
static __inline__ isc_uint64_t
get_time(void)
{
}
#define SAFE_DIV(n, d) ( (d) == 0 ? 0 : (n) / (d) )
#endif