libdap++  Updated for version 3.13.3
HTTPCacheTable.h File Reference
#include <pthread.h>
#include <string>
#include <vector>
#include <map>
#include "HTTPCache.h"
#include "Error.h"
#include "InternalErr.h"
#include "util.h"
#include "debug.h"
Include dependency graph for HTTPCacheTable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  libdap::HTTPCacheTable::CacheEntry
 
class  libdap::HTTPCacheTable
 

Namespaces

 libdap
 

Macros

#define DESTROY(m)   pthread_mutex_destroy((m))
 
#define INIT(m)   pthread_mutex_init((m), 0)
 
#define LOCK(m)
 
#define TRYLOCK(m)   pthread_mutex_trylock((m))
 
#define UNLOCK(m)
 

Functions

int libdap::get_hash (const string &url)
 

Macro Definition Documentation

#define DESTROY (   m)    pthread_mutex_destroy((m))

Definition at line 75 of file HTTPCacheTable.h.

Referenced by libdap::HTTPCache::~HTTPCache().

#define INIT (   m)    pthread_mutex_init((m), 0)

Definition at line 74 of file HTTPCacheTable.h.

Referenced by libdap::HTTPCacheTable::CacheEntry::CacheEntry().

#define LOCK (   m)
Value:
do { \
int code = pthread_mutex_lock((m)); \
if (code != 0) \
throw InternalErr(__FILE__, __LINE__, "Mutex lock: " + long_to_string(code)); \
} while(0);
string long_to_string(long val, int base)
Definition: util.cc:773

Definition at line 61 of file HTTPCacheTable.h.

Referenced by libdap::HTTPCache::instance(), libdap::HTTPCache::lock_cache_interface(), libdap::HTTPCacheTable::CacheEntry::lock_read_response(), and libdap::HTTPCacheTable::CacheEntry::lock_write_response().

#define TRYLOCK (   m)    pthread_mutex_trylock((m))
#define UNLOCK (   m)
Value:
do { \
int code = pthread_mutex_unlock((m)); \
if (code != 0) \
throw InternalErr(__FILE__, __LINE__, "Mutex unlock: " + long_to_string(code)); \
} while(0);
string long_to_string(long val, int base)
Definition: util.cc:773

Definition at line 67 of file HTTPCacheTable.h.

Referenced by libdap::HTTPCache::instance(), libdap::HTTPCacheTable::CacheEntry::lock_read_response(), libdap::HTTPCache::unlock_cache_interface(), libdap::HTTPCacheTable::CacheEntry::unlock_read_response(), and libdap::HTTPCacheTable::CacheEntry::unlock_write_response().