summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-08-17 14:46:19 +0800
committerchenzizhan <[email protected]>2023-08-17 14:46:19 +0800
commit07271b245d3c6b3c16467dced67d76cf60da9ed7 (patch)
tree80e38615353f8bc4e42d9f20d8ec5f2a4e877c1e /include
parentb0dbf651b32c18bdbc343dabe425208560ea5fc1 (diff)
better headfilev4.1.0
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h
index 461f74d..42eae68 100644
--- a/include/fieldstat/fieldstat.h
+++ b/include/fieldstat/fieldstat.h
@@ -155,9 +155,10 @@ int fieldstat_serialize(const struct fieldstat *instance, char **blob_out, size_
/*
@ brief Merge the instance and reset the src. The registered cubes and metrics are merged even if there are no cells added
This operation is partially thread-safe. Src can be written by other threads, but cannot be read by other threads during the merge operation.
- Reset will not influence the adding operation in other threads during the running time of this function. (Reset on entering fieldstat_merge_and_reset)
+ Reset will undo the effect of fieldstat_cube_add and 4 adding operation functions below. And increase cell_version by 1.(The same as fieldstat_reset)
+ Reset will not influence the adding operation in other threads during the running time of this function. As if reset take effects before merging
- the following functions can be called while `fieldstat_merge_and_reset` is reading the same instance handle as its argument `src`:
+ the following functions can be called while `fieldstat_merge_and_reset` is reading the same instance handle, its argument `src`:
- `fieldstat_get_cell_version`
- `fieldstat_hist_record`
- `fieldstat_hll_add`