#include "base64.hh"
-
+#include <inttypes.h>
namespace anonpdns {
char B64Decode1(char cInChar)
#ifndef PDNS_HTIMER_HH
#define PDNS_HTIMER_HH
-
+#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include <boost/utility.hpp>
#include <map>
TryWriteLock(pthread_rwlock_t *lock) : d_lock(lock)
{
- if(g_singleThreaded)
+ if(g_singleThreaded) {
+ d_havelock=true;
return;
+ }
d_havelock=false;
if((errno=pthread_rwlock_trywrlock(d_lock)) && errno!=EBUSY)
TryReadLock(pthread_rwlock_t *lock) : d_lock(lock)
{
- if(g_singleThreaded)
+ if(g_singleThreaded) {
+ d_havelock=true;
return;
+ }
- d_havelock=false;
if((errno=pthread_rwlock_tryrdlock(d_lock)) && errno!=EBUSY)
throw AhuException("error acquiring rwlock tryrdlock: "+stringerror());
d_havelock=(errno==0);
/*
PowerDNS Versatile Database Driven Nameserver
- Copyright (C) 2005 PowerDNS.COM BV
+ Copyright (C) 2005 - 2009 PowerDNS.COM BV
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
#ifndef PDNS_RCPGENERATOR_HH
#define PDNS_RCPGENERATOR_HH
-
+#include <inttypes.h>
#include <string>
#include <stdexcept>
#if !defined SOLARIS8 && !defined WIN32
#define PDNS_REC_CHANNEL
#include <string>
#include <map>
+#include <inttypes.h>
#if !defined SOLARIS8 && !defined WIN32
#elif defined WIN32