18 #ifndef FOEDUS_PROC_PROC_ID_HPP_
19 #define FOEDUS_PROC_PROC_ID_HPP_
68 return static_cast<GlobalProcId
>(node) << 32 | local_id;
71 return static_cast<uint16_t
>(
id >> 32);
74 return static_cast<LocalProcId
>(id);
123 #endif // FOEDUS_PROC_PROC_ID_HPP_
const void * input_buffer_
[IN] Arbitrary user input given to the procedure
uint32_t output_buffer_size_
[IN] Byte length of output_buffer_ capacity
uint32_t input_len_
[IN] Byte length of input_buffer_
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Represents one thread running on one NUMA core.
Forward declarations of classes in root package.
Brings error stacktrace information as return value of functions.
Engine * engine_
[IN] Database Engine
thread::Thread * context_
[IN] Thread on which the procedure is running
uint64_t GlobalProcId
A globally unique ID of a procedure.
Database engine object that holds all resources and provides APIs.
std::pair< ProcName, Proc > ProcAndName
const LocalProcId kLocalProcInvalid
uint32_t * output_used_
[OUT] Byte length of output_buffer_ actually written
void * output_buffer_
[OUT] Arbitrary user output buffer given to the procedure
assorted::FixedString< 60 > ProcName
Represents a unique name of a procedure.
GlobalProcId combined_global_proc_id(uint16_t node, LocalProcId local_id)
uint32_t LocalProcId
Represents a locally-unique ID of a procedure in one SOC.
ErrorStack(* Proc)(const ProcArguments &args)
A function pointer of a user/system stored procedure.
Set of arguments, both inputs and outputs, given to each procedure.
Forward declarations of classes in thread package.
LocalProcId extract_local_id_from_global_proc_id(GlobalProcId id)
uint16_t extract_numa_node_from_global_proc_id(GlobalProcId id)