tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
policies.hpp File Reference
#include <stm/config.h>
#include <cstdio>
#include <inttypes.h>
#include <common/platform.hpp>
#include <stm/metadata.hpp>
#include <stm/txthread.hpp>
#include <stm/lib_globals.hpp>
Include dependency graph for policies.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stm::pol_t
 
struct  stm::behavior_t
 
struct  stm::dynprof_t
 
struct  stm::qtable_t
 

Namespaces

 stm
 

Enumerations

enum  stm::POLS {
  stm::Single, stm::PROFILE_NOCHANGE, stm::E, stm::ER,
  stm::R, stm::X, stm::CBR_RO, stm::CBR_Read,
  stm::CBR_Write, stm::CBR_Time, stm::CBR_RW, stm::CBR_R_RO,
  stm::CBR_R_Time, stm::CBR_W_RO, stm::CBR_W_Time, stm::CBR_Time_RO,
  stm::CBR_R_W_RO, stm::CBR_R_W_Time, stm::CBR_R_Time_RO, stm::CBR_W_Time_RO,
  stm::CBR_R_W_Time_RO, stm::CBR_TxnRatio, stm::CBR_TxnRatio_R, stm::CBR_TxnRatio_W,
  stm::CBR_TxnRatio_RO, stm::CBR_TxnRatio_Time, stm::CBR_TxnRatio_RW, stm::CBR_TxnRatio_R_RO,
  stm::CBR_TxnRatio_R_Time, stm::CBR_TxnRatio_W_RO, stm::CBR_TxnRatio_W_Time, stm::CBR_TxnRatio_RO_Time,
  stm::CBR_TxnRatio_RW_RO, stm::CBR_TxnRatio_RW_Time, stm::CBR_TxnRatio_R_RO_Time, stm::CBR_TxnRatio_W_RO_Time,
  stm::CBR_TxnRatio_RW_RO_Time, stm::POL_MAX
}
 

Functions

void stm::pol_init (const char *mode)
 
int stm::pol_name_map (const char *phasename)
 
TM_INLINE unsigned long long stm::get_nontxtime ()
 
void stm::init_adapt_pol (uint32_t PolicyID, int32_t startmode, int32_t abortThresh, int32_t waitThresh, bool isDynamic, bool isCBR, bool isCommitProfile, uint32_t(*decider)() TM_FASTCALL, const char *name)