Multi-ApplicationOnlineProfiling
2.1
|
Base piece of data. More...
Data Structures | |
struct | Data_entry |
Struct defining a piece of data that can exist on the blackboard. More... | |
Functions | |
struct Data_entry * | Data_entry_init (uint64_t key, void *payload, size_t size) |
Creates a new Data_entry. More... | |
struct Data_entry * | Data_entry_clone (struct Data_entry *de) |
Clones a Data_entry. More... | |
void | Data_entry_release (struct Data_entry *de) |
Clears a Data_entry. More... | |
static void | Data_entry_reset_ref_count (struct Data_entry *de) |
Resets the ref_count of a Data_entry. More... | |
static uint64_t | Data_entry_get_ref_count (struct Data_entry *de) |
Getter on the ref_count of a Data_entry. More... | |
static void | Data_entry_inc_ref_count (struct Data_entry *de, uint64_t val) |
Increments the ref_count of a Data_entry by a given value. More... | |
static uint64_t | Data_entry_dec_ref_count (struct Data_entry *de) |
Decrements the ref_count of a Data_entry. More... | |
static uint64_t | Data_entry_get_key (struct Data_entry *de) |
Getter on the Data_entry key. More... | |
static size_t | Data_entry_get_payload_size (struct Data_entry *de) |
Getter on the Data_entry payload size. More... | |
static void * | Data_entry_get_payload (struct Data_entry *de) |
Getter on the actual data of a Data_entry. More... | |
Base piece of data.
The Data_Entry is the base piece of data that can be "written" and "read" on the black board
struct Data_entry* Data_entry_clone | ( | struct Data_entry * | de | ) |
Clones a Data_entry.
de | the Data_entry to clone |
Definition at line 48 of file Data_Entry.c.
|
inlinestatic |
Decrements the ref_count of a Data_entry.
de | the Data_entry |
Definition at line 127 of file Data_Entry.h.
|
inlinestatic |
Getter on the Data_entry key.
de | the Data_entry |
Definition at line 144 of file Data_Entry.h.
|
inlinestatic |
Getter on the actual data of a Data_entry.
de | the Data_entry |
Definition at line 166 of file Data_Entry.h.
|
inlinestatic |
Getter on the Data_entry payload size.
de | the Data_entry |
Definition at line 155 of file Data_Entry.h.
|
inlinestatic |
Getter on the ref_count of a Data_entry.
de | the Data_entry |
Definition at line 94 of file Data_Entry.h.
|
inlinestatic |
Increments the ref_count of a Data_entry by a given value.
de | the Data_entry |
val | the value to add to ref_count |
Definition at line 112 of file Data_Entry.h.
struct Data_entry* Data_entry_init | ( | uint64_t | key, |
void * | payload, | ||
size_t | size | ||
) |
Creates a new Data_entry.
key | the data key |
payload | the actual data |
size | the size of data |
Definition at line 25 of file Data_Entry.c.
void Data_entry_release | ( | struct Data_entry * | de | ) |
Clears a Data_entry.
de | the Data_entry to clear |
Definition at line 64 of file Data_Entry.c.
|
inlinestatic |
Resets the ref_count of a Data_entry.
de | the Data_entry |
Definition at line 79 of file Data_Entry.h.