CernVM-FS
2.12.0
|
#include <channel.h>
Classes | |
struct | ThreadLocalStorage |
Public Member Functions | |
~SessionCtx () | |
void | Set (uint64_t id, char *reponame, char *client_instance) |
void | Unset () |
void | Get (uint64_t *id, char **reponame, char **client_instance) |
bool | IsSet () |
Static Public Member Functions | |
static SessionCtx * | GetInstance () |
static void | CleanupInstance () |
Private Member Functions | |
SessionCtx () | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
Static Private Member Functions | |
static void | TlsDestructor (void *data) |
Private Attributes | |
pthread_key_t | thread_local_storage_ |
pthread_mutex_t * | lock_tls_blocks_ |
std::vector< ThreadLocalStorage * > | tls_blocks_ |
Static Private Attributes | |
static SessionCtx * | instance_ = NULL |
This file is part of the CernVM File System. A SessionCtx stores the session information related to the current cache plugin callback in thread-local-storage. Singleton.
TODO(jblomer): merge code with ClientCtx
SessionCtx::~SessionCtx | ( | ) |
|
private |
|
static |
Definition at line 32 of file channel.cc.
void SessionCtx::Get | ( | uint64_t * | id, |
char ** | reponame, | ||
char ** | client_instance | ||
) |
Definition at line 71 of file channel.cc.
Referenced by cvmcache_get_session().
|
static |
Definition at line 59 of file channel.cc.
Referenced by cvmcache_get_session(), CachePlugin::SessionCtxGuard::SessionCtxGuard(), and CachePlugin::SessionCtxGuard::~SessionCtxGuard().
bool SessionCtx::IsSet | ( | ) |
Definition at line 86 of file channel.cc.
void SessionCtx::Set | ( | uint64_t | id, |
char * | reponame, | ||
char * | client_instance | ||
) |
Definition at line 96 of file channel.cc.
Referenced by CachePlugin::SessionCtxGuard::SessionCtxGuard().
|
staticprivate |
void SessionCtx::Unset | ( | ) |
Definition at line 133 of file channel.cc.
Referenced by CachePlugin::SessionCtxGuard::~SessionCtxGuard().
|
staticprivate |
|
private |