5 #ifndef CVMFS_CLIENTCTX_H_
6 #define CVMFS_CLIENTCTX_H_
81 if (old_ctx->
IsSet()) {
85 old_ctx->
Set(uid, gid, pid, ic);
105 #endif // CVMFS_CLIENTCTX_H_
bool set_on_construction_
ClientCtxGuard(uid_t uid, gid_t gid, pid_t pid, InterruptCue *ic)
struct cvmcache_context * ctx
bool is_set
either not yet set or deliberately unset
void Get(uid_t *uid, gid_t *gid, pid_t *pid, InterruptCue **ic)
std::vector< ThreadLocalStorage * > tls_blocks_
static ClientCtx * instance_
InterruptCue * old_interrupt_cue_
assert((mem||(size==0))&&"Out Of Memory")
ThreadLocalStorage(uid_t u, gid_t g, pid_t p, InterruptCue *ic)
InterruptCue * interrupt_cue
A non-owning pointer.
pthread_key_t thread_local_storage_
static void TlsDestructor(void *data)
pthread_mutex_t * lock_tls_blocks_
void Set(uid_t uid, gid_t gid, pid_t pid, InterruptCue *ic)
static void CleanupInstance()
static ClientCtx * GetInstance()